restrictions of a complextype element


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

<xsd:schema xmlns:xsd=""
 <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