File: invalid-enumeration-restriction.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (17 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!-- Invalid enumeration restriction related to issue #202 -->
    <xs:simpleType name="LocalEnergyProductType">
        <xs:restriction base="xs:NMTOKEN">
            <xs:enumeration value="8716867000016" />
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="LocalRestrictedEnergyProductType">
        <xs:restriction base="LocalEnergyProductType">
			<xs:enumeration value="A01"/>  <!-- not a valid value for base type -->
		</xs:restriction>
	</xs:simpleType>

</xs:schema>