Re: How do I specify a nullable xs:int?
- From: ht@xxxxxxxxxxxx (Henry S. Thompson)
- Date: Wed, 23 Nov 2005 10:10:26 +0000
jacksuyu writes:
> I am wondering whether there is anyway to specify nullable integer, say
> treat <Port/> the same as <Port>0</Port>?
That's a defaulted xs:int, not a nullable one, and yes, just declare
<xs:element name="Port" type="xs:int" default="0"/>
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@xxxxxxxxxxxx
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
.
- References:
- How do I specify a nullable xs:int?
- From: jacksuyu
- How do I specify a nullable xs:int?
- Prev by Date: Re: XPath Expression trouble
- Next by Date: xml parsing memory leak
- Previous by thread: Re: How do I specify a nullable xs:int?
- Next by thread: Binary XML and MPEG-7 BiM
- Index(es):