Debian Codegraph @

tests/test_cases/features/derivations/invalid-enumeration-restriction.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 <!-- Invalid enumeration restriction related to issue #202 -->
4 <xs:simpleType name="LocalEnergyProductType">
5 <xs:restriction base="xs:NMTOKEN">
6 <xs:enumeration value="8716867000016" />
7 </xs:restriction>
8 </xs:simpleType>
9
10 <xs:simpleType name="LocalRestrictedEnergyProductType">
11 <xs:restriction base="LocalEnergyProductType">
12 <xs:enumeration value="A01"/> <!-- not a valid value for base type -->
13 </xs:restriction>
14 </xs:simpleType>
15
16 </xs:schema>
17