I am having an issue in that XML I am generating validates against the XSD fine in Stylus studio and in a custom C# app I have written, but when developers at our parent company use XML Spy (I didn't pick it, but am stuck with them using it) The docs fail to validate due to whitespace in numeric fields.
As an example I have a node in my Schema named PAR_TIME
<xs:element name="PAR_TIME" type="xs:decimal"/>
If the node is <PAR_TIME>51.98 </PAR_TIME> XML Spy fails (but Stylus does not) yet if the node is <PAR_TIME>51.98</PAR_TIME> both work.
I have a couple of questions about this
1) which setting is correct out of the box (to ignore whitespace or not)
2) how do I set SS to validate accounting for whitespace
3) is there a schema tag I can use to ignore whitespace for numerics (I think there is, but am not sure of what the syntax of a tag would be).
At 13.58 27/07/2006 -0400, stylus-studio-tech Listmanager wrote:
>From: "Doug Hubbard" <<mailto:doug@trackmaster.com>doug@trackmaster.com>
>
>I am having an issue in that XML I am generating validates against
>the XSD fine in Stylus studio and in a custom C# app I have written,
>but when developers at our parent company use XML Spy (I didn't pick
>it, but am stuck with them using it) The docs fail to validate due
>to whitespace in numeric fields.
>
>As an example I have a node in my Schema named PAR_TIME
><xs:element name="PAR_TIME" type="xs:decimal"/>
>If the node is <PAR_TIME>51.98 </PAR_TIME> XML Spy fails (but Stylus
>does not) yet if the node is <PAR_TIME>51.98</PAR_TIME> both work.
>
>I have a couple of questions about this
>1) which setting is correct out of the box (to ignore whitespace or not)
In this case the correct operation is to ignore the whitespace (both
leading and trailing) as the xs:decimal data type is defined as
having the 'collapse' whiteSpace facet