xsi:nil="true" works for the empty string case, but not the space case.
Define a union of "xsd:decimal" and a restriction of "xsd:token" by
specifying an enumeration of the empty string.
<xsd:simpleType name="myDecimal">
<xsd:union memberTypes="xsd:decimal">
<xsd:simpleType>
<xsd:restriction base="xsd:token">
<xsd:enumeration value=""/>
...
Hope this helps,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
"Shital Joshi"
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
m> cc:
Subject: allow space for
<xsd:decimal> type in schema
05/22/2003 01:16
PM
Please respond to
xerces-j-user
hi there,
how can i allow space or empty string for an element, with datatype defined
as <xsd:decimal> in the corresponding schema?
i tried "nillable=true" attribute, then different facets but it didn't
work.
:(
any ideas?
thanks a lot,
-Shital Joshi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
