| <?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:fractionDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetRepeat"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#fractionDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits value="1"/> |
| <xsd:fractionDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetExtraAttribute"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#fractionDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits value="1" bad="bad"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetMissingValue"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#fractionDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetValue"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#fractionDigits-value"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits value="-1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetFixed"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#fractionDigits-fixed"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits value="1" fixed="bad"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetWithFractionDigits"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#fractionDigits-less-than-equal-to-totalDigits"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:totalDigits value="1"/> |
| <xsd:fractionDigits value="2"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetRestriction"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#fractionDigits-valid-restriction"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction> |
| <xsd:simpleType> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| <xsd:fractionDigits value="2"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetRestrictionFixed"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#dc-fractionDigits"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction> |
| <xsd:simpleType> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits value="2" fixed="true"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| <xsd:fractionDigits value="1"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| <xsd:simpleType name="badFractionDigitsFacetAppliedToDecimal"> |
| <xsd:annotation> |
| <xsd:documentation source="http://www.w3.org/TR/xmlschema-2/#cvc-fractionDigits-valid"> |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:restriction> |
| <xsd:simpleType> |
| <xsd:restriction base="xsd:decimal"> |
| <xsd:fractionDigits value="3"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| <xsd:enumeration value="0.1234"/> |
| </xsd:restriction> |
| </xsd:simpleType> |
| |
| </xsd:schema> |