[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Validation of missing elements in xml:
- To: "Eric van der Vlist" <vdv@d...>
- Subject: Re: Validation of missing elements in xml:
- From: "Mukul Gandhi" <gandhi.mukul@g...>
- Date: Tue, 4 Apr 2006 15:55:16 +0530
- Cc: xml-dev@l...
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SrVApUc9Q7HinbamQARby+DHcdfNchnEubE82KjM68p4VZ29JY13gY76YwhRK+UK30erQ4W9Y6XZhACQsGLvPzOTiHhgrEul3x4jcHSDmTVuZy/Op4X8+0W6AD8NkMTVNuMJ8lGDWiPQYvTxuiQvglc/OuK5Bua3UW9x0qqG1cM=
- In-reply-to: <1144078760.19080.43.camel@l...>
- References: <20060403153140.2F9F57F573F@g...> <1144078760.19080.43.camel@l...>

On 4/3/06, Eric van der Vlist <vdv@d...> wrote:
>
> Deriving from xs:string won't catch cases where you only have
> whitespaces such as;
>
> <Person>
> <name>
> </name>
> <email>
> aaa.bbb@x...
> </email>
> </Person>
>
> If this should be considered invalid (which happens to be consistent
> with the behavior of other datatypes), you should derive form xs:token
> instead of xs:string...
>
or maybe as
<xs:simpleType name="mystring">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:pattern value="[A-Za-z]{1,} *[A-Za-z]{1,}"/>
</xs:restriction>
</xs:simpleType>
Regards,
Mukul
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
 |
Atom 0.3 |
 |
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|