W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

restrictions of a complextype element

From: David Valera <David.Valera@tridion.com>
Date: Thu, 21 Jun 2001 09:18:16 +0200
Message-ID: <2DAFF28F562AD4119B0E00508B5F049FA77817@AMSEXCH01>
To: xmlschema-dev@w3.org

I am trying to restrict the value space of an element like this:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 <xsd:element name="Test">
	<xsd:restriction base="xsd:string">
	  <xsd:enumeration value="hello world"></xsd:enumeration>
	  <xsd:enumeration value="this is me"></xsd:enumeration>
    <xsd:attribute name="myAtt" type="xsd:string"></xsd:attribute>

The important part here is that I want to restrict an element which also has
attributes. Is this example correct?


David Valera
Received on Thursday, 21 June 2001 03:24:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:51 UTC