Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Set comma as decimal separator >Thread Next - Re: Set comma as decimal separator Re: Set comma as decimal separatorTo: NULL Date: 7/5/2005 3:25:00 PM
actarus wrote:
> Ok, I have another question, I have an element that could be with or without
> data and if the element has a data this should be a particular data types,
> for example:
> <data_gara>21/07/2005</data_gara> or
> <data_gara />
> How can I write that in a xsd schema?
The proper way to do that is with the nillable attribute e.g.
<xsl:element name="data_gara" type="someTypeHere" nillable="true" />
then in the XML instance document you need
<data_gara xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
