← Prev in month ← Prev in thread

How to create "strict" flag for schema?

From
David Nedrow <>
To
Date
2005-12-01T20:21:34Z
ID
<>
Thread
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>
← Prev in month ← Prev in thread