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

Re: Schema DEV

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Thu, 31 Oct 2002 09:27:34 +1100
Message-ID: <3DC05CD6.5020603@allette.com.au>
To: Uriel Nusenbaum <nusen@arnet.com.ar>
CC: xmlschema-dev@w3.org

Hi Uriel,

> Hello, my name is Uriel Nusenbaum Im from Buenos Aires, Argentina.
> I need to make an a schema that use my own data type ? it's posible ?

Certainly.

> for example :
>   <element name = "FirstName" type = "ownstring" />
> i like to define that ownstring data type is a set of characters but 
> only letters and numbers : ex.: hggdff655

Here is one example:

<xs:simpleType name="myType">
   <xs:restriction base="xs:string">
      <xs:pattern value="[a-z0-9]"/>
   </xs:restriction>
</xs:simpleType>

<xs:element name="FirstName" type="myType"/>

A good start for W3C XML Schema is the Primer [1]

Cheers,
/Eddie

[1] http://www.w3.org/TR/xmlschema-0/

> I will aprecciate the answer
> Thanks.
>  
Received on Wednesday, 30 October 2002 17:28:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT