| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| /** |
| */ |
| --> |
| <xsd:schema |
| targetNamespace="http://www.example.com/Bad" |
| xmlns:this="http://www.example.com/Bad" |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| |
| <xsd:simpleType name="badFacetForType" > |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#cos-applicable-facets"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:string"> |
| <xsd:totalDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetRepeat"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#totalDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="1"/> |
| <xsd:totalDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetExtraAttribute"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#totalDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="1" bad="bad"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetMissingValue"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#totalDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetValue"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#totalDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="0"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetFixed"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#totalDigits-fixed"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="1" fixed="bad"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetRestriction"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#totalDigits-valid-restriction"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction> |
| <xsd:simpleType> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| <xsd:totalDigits value="2"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetRestrictionFixed"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#dc-totalDigits"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction> |
| <xsd:simpleType> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="2" fixed="true"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| <xsd:totalDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badTotalDigitsFacetAppliedToDecimal"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#cvc-totalDigits-valid"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction> |
| <xsd:simpleType> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="3"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| <xsd:enumeration value="1234"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| </xsd:schema> |