|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How to create "strict" flag for schema?
I'd like to be able to modify my schema to allow for "strict" usage.
Eg., in the simplified schema portion below, I've define <hextype/>. As
it stands, I'm only accepting [0-9A-F] which I consider a "strict" form
of hexadecimal entry. I would also like to allow [0-9a-fA-F] as a
"loose" form.
Basically, my question is, how can I modify my schema and the example
element below to allow the user to create a "strict" ipdt markup. Note
that ipdt is actually just a number of base types that are used in
another schema. So, in the other schema (ipxml) I need (I assume) a
global flag for strict, then proper processing in <hextype/> to handle
the global strict flag.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="ipdt" xmlns="ipdt" elementFormDefault="qualified">
<xs:simpleType name="hextype">
<xs:restriction base="stringtype">
<xs:pattern value="[0-9A-F]"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








