- From: Eddie Robertsson <erobertsson@allette.com.au>
- Date: Thu, 31 Oct 2002 09:27:34 +1100
- To: Uriel Nusenbaum <nusen@arnet.com.ar>
- CC: xmlschema-dev@w3.org
Hi Uriel, > Hello, my name is Uriel Nusenbaum I´m 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 UTC