J
johkar
I need an XSD restriction for an attribute that will catch this:
name=" AD 01 24"
I need to enforce all caps or numbers or spaces but disallow leading
or trailing spaces. If I could dissallow double spaces that would be
a bonus. This is what I have so far:
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
<xsattern value="([A-Z0-9 -])*"/>
</xs:restriction>
</xs:simpleType>
name=" AD 01 24"
I need to enforce all caps or numbers or spaces but disallow leading
or trailing spaces. If I could dissallow double spaces that would be
a bonus. This is what I have so far:
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
<xsattern value="([A-Z0-9 -])*"/>
</xs:restriction>
</xs:simpleType>