Re: How do I specify a nullable xs:int?



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]
.