[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-dev
Subject: Re: allow space for <xsd:decimal> type in schema
From: "Sandy Gao" <sandygao () ca ! ibm ! com>
Date: 2003-05-26 13:27:58
[Download RAW message or body]
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
sandygao@ca.ibm.com
\
"Shital Joshi" \
<shital@mfgsys.co To: \
<xerces-j-user@xml.apache.org> \
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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic