Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to create "strict" flag for schema?

From: David Nedrow <listbox@------.--->
To: xml-dev@-----.---.---
Date: 12/1/2005 8:36:00 PM
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>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent