W3C

AnyAttributeStrict Example

  <xs:element name="anyAttributeStrict" type="ex:AnyAttributeStrict"/>

  <xs:complexType name="AnyAttributeStrict">
        <xs:sequence>
          <xs:element name="firstName" type="xs:string"/>
          <xs:element name="lastName" type="xs:string"/>
        </xs:sequence>
        <xs:anyAttribute/>
      </xs:complexType>

  <xs:attribute name="eyeColor" type="xs:string"/>

  <xs:attribute name="hairColor" type="xs:string"/>

The example schema [AnyAttributeStrict.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
AnyAttributeStrict01
AnyAttributeStrict02
AnyAttributeStrict03

  <ex:anyAttributeStrict ex:eyeColor="blue">
        <ex:firstName>Bobby</ex:firstName>
        <ex:lastName>Sox</ex:lastName>
      </ex:anyAttributeStrict>
  <ex:anyAttributeStrict ex:eyeColor="blue">
        <ex:firstName>Bobby</ex:firstName>
        <ex:lastName>Sox</ex:lastName>
      </ex:anyAttributeStrict>
  <ex:anyAttributeStrict ex:eyeColor="blue" ex:hairColor="green">
        <ex:firstName>Bobby</ex:firstName>
        <ex:lastName>Sox</ex:lastName>
      </ex:anyAttributeStrict>

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$