W3C

LocalAttributeSimpleType Example

  <xs:element name="localAttributeSimpleType" type="ex:LocalAttributeSimpleType"/>

  <xs:complexType name="LocalAttributeSimpleType">
        <xs:sequence>
          <xs:element name="localElement1" type="xs:string"/>
          <xs:element name="localElement2" type="xs:string"/>
        </xs:sequence>
        <xs:attribute name="localAttribute">
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="First"/>
              <xs:enumeration value="Second"/>
              <xs:enumeration value="Third"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:complexType>

The example schema [LocalAttributeSimpleType.xsd] has been classified as being "" as it exhibits the following patterns:

Status Name XPath

To facilitate testing, the example schema element has been wrapped in the following descriptions:

The following valid instance documents are provided:

Instance Validity
LocalAttributeSimpleType01

  <ex:localAttributeSimpleType localAttribute="First">
        <ex:localElement1>String</ex:localElement1>
        <ex:localElement2>String</ex:localElement2>
      </ex:localAttributeSimpleType>

This document was produced by the W3C XML Schema Patterns for Databinding Working Group. Comments on this document may be sent to the public public-xsd-databinding-comments@w3.org mailing list (public archive).

Generated from examples.xml $Date$