F
FC
Hello folks,
I'd like to make the following simple type definition case insensitive:
<xsd:simpleType name="MyType">
<xsd:restriction base="xsd:string">
<xsdattern value="(TRUE|FALSE|('([a-zA-Z0-9])+'))
?(NOOVERRIDE)?"/>
</xsd:restriction>
</xsd:simpleType>
As you can easily guess, if I later use an attribute of type MyType in an
instance document:
MyAttribute="TRUE NOOVERRIDE"
will be ok, but
MyAttribute="true NoOverride"
won't validate.
Even if I supply more combinations of the keywords like "True", "true" and
so on, this doesn't solve the problem in an elegant fashion.
Is there a better solution?
Bye,
Flavio
I'd like to make the following simple type definition case insensitive:
<xsd:simpleType name="MyType">
<xsd:restriction base="xsd:string">
<xsdattern value="(TRUE|FALSE|('([a-zA-Z0-9])+'))
?(NOOVERRIDE)?"/>
</xsd:restriction>
</xsd:simpleType>
As you can easily guess, if I later use an attribute of type MyType in an
instance document:
MyAttribute="TRUE NOOVERRIDE"
will be ok, but
MyAttribute="true NoOverride"
won't validate.
Even if I supply more combinations of the keywords like "True", "true" and
so on, this doesn't solve the problem in an elegant fashion.
Is there a better solution?
Bye,
Flavio