In my schema I have declared the following element type
<xsd:simpleType name="_outlet">
<xsd:restriction base="xsd:positiveInteger">
<xsd:pattern value="[0-9]{3}"/>
</xsd:restriction>
</xsd:simpleType>
The reason for the pattern is to ensure the value is always 3 digits e.g.
"000" or "010".
If I do schema validation with Xerces or XML Spy then I have no problems
passing a value of "000" or "001" in the XML. With castor I can't use
values which are prefixed with zeros, e.g "001" or "010". Is this because
the XML value is converted to an integer before it is patterned matched?
How do I get round this problem without changing the schema?
thanks in advance!
Jasbir
==================================================
HFC Bank Disclaimer
The information in this Email belongs to HFC Bank plc. It is intended for the use of
the individual or entity to which it is addressed and may contain information that is
privileged, confidential and exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any disclosure, copying,
distribution or the taking of any action in reliance on the contents of this Email is
prohibited. If you have received this Email in error, please notify us immediately by
telephone on 01344 890000 and delete the Email from your system and destroy all copies
which you have made of the same. Thank you.
HFC Bank plc Company Registration Number - 1117305 England
Registered Office: North Street, Winkfield Berkshire SL4 4TD.