Hi,
I Use Source Generator (Castor 0.9.4.1)
In my schema I have declared the following element type
<xsd:simpleType name="valAngleBrgBase">
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="000"/>
<xsd:maxInclusive value="360"/>
<xsd:pattern value="\d{3}(\.\d{1,4}){0,1}"/>
</xsd:restriction>
</xsd:simpleType>
The reason for the pattern is to ensure the first part (Integer part) of 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 this because during the marshalling the value generated is "1"
or "10" not "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?
Regards,
Serge
____
This message and any files transmitted with it are legally privileged and intended for
the sole use of the individual(s) or entity to whom they are addressed. If you are not
the intended recipient, please notify the sender by reply and delete the message and
any attachments from your system. Any unauthorised use or disclosure of the content of
this message is strictly prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on the
part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.
Any views expressed in this message are those of the sender.