- From: David Valera <David.Valera@tridion.com>
- Date: Thu, 21 Jun 2001 09:18:16 +0200
- To: xmlschema-dev@w3.org
Hello,
I am trying to restrict the value space of an element like this:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:element name="Test">
<xsd:complexType>
<xsd:simpleContent>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="hello world"></xsd:enumeration>
<xsd:enumeration value="this is me"></xsd:enumeration>
</xsd:restriction>
</xsd:simpleContent>
<xsd:attribute name="myAtt" type="xsd:string"></xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:schema>
The important part here is that I want to restrict an element which also has
attributes. Is this example correct?
thanks,
David Valera
Received on Thursday, 21 June 2001 03:24:31 UTC