[xsd-users] xs:double with xs:restriction
Schrader, Glenn - 1002 - MITLL
gschrad at ll.mit.edu
Mon Sep 24 11:29:39 EDT 2018
Hello,
I have a schema containing a simple data type that has the restriction <xs:pattern value="[0-9]\.[0-9]"/> with xs:double as the base type. The problem is that the output doesn't always match the pattern. For instance if the field's value is 8.0 then an output file has "<Field>8</Field>" rather than "<Field>8.0</Field>". Validating parsers flag this as an error since it doesn't match the pattern so is there a way to make this work or are pattern restrictions not supported for this case (i.e. non-string base types).
Thanks
More information about the xsd-users
mailing list