[Home] [By Thread] [By Date] [Recent Entries]
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
|

Cart



