W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2002

xsd restriction / facets

From: Uriel Nusenbaum <nusen@arnet.com.ar>
Date: Wed, 13 Nov 2002 16:20:38 -0300
Message-ID: <009c01c28b49$bfc72c90$33fca8c0@URIEL>
To: <xmlschema-dev@w3c.org>
    I Need to do something like this:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:element name="XMLMODIFY">



<xsd:element name="CUPID" type="cupid"/>




<xsd:simpleType name="cupid">

<xsd:restriction base="xsd:string">

<xsd:pattern value="[a-z0-9A-Z]*"/>




when I make the xml, i have 2 ways , one with the CUPID node empty, and a second with the CUPID node completed.

If the node cupid is completed i need to validate that the value must be minium of four character and maximum of ten character .

its clear ?

i will aprecciate an answer.

Received on Wednesday, 13 November 2002 14:46:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:07 UTC