element schema

element {http://www.w3.org/2001/XMLSchema}schema

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}anyType (by restriction)
 {http://www.w3.org/2001/XMLSchema}openAttrs (by extension)
  {http://www.w3.org/2001/XMLSchema}schema
Abstractfalse (This can be used in an instance)
Block Substitutionsextension, restriction, substitution
Nillablefalse (Instance values cannot use xsi:nil)
Target Namespacehttp://www.w3.org/2001/XMLSchema
Declared Namespacesxmlns:hfp=http://www.w3.org/2001/XMLSchema-hasFacetAndProperty
xmlns:xs=http://www.w3.org/2001/XMLSchema


Source

<xs:element name="schema" id="schema">
    <
xs:annotation>
        <
xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-schema"/>
    </
xs:annotation>
    <
xs:complexType mixed="false">
        <
xs:complexContent>
            <
xs:extension base="xs:openAttrs">
                <
xs:sequence>
                    <
xs:choice minOccurs="0" maxOccurs="unbounded">
                        <
xs:element ref="xs:include"/>
                        <
xs:element ref="xs:import"/>
                        <
xs:element ref="xs:redefine"/>
                        <
xs:element ref="xs:annotation"/>
                    </
xs:choice>
                    <
xs:sequence minOccurs="0" maxOccurs="unbounded">
                        <
xs:group ref="xs:schemaTop"/>
                        <
xs:element ref="xs:annotation" minOccurs="0" maxOccurs="unbounded"/>
                    </
xs:sequence>
                </
xs:sequence>
                <
xs:attribute name="targetNamespace" type="xs:anyURI"/>
                <
xs:attribute name="version" type="xs:token"/>
                <
xs:attribute name="finalDefault" type="xs:fullDerivationSet" use="optional"
                    
default=""/>
                <
xs:attribute name="blockDefault" type="xs:blockSet" use="optional" default=""/>
                <
xs:attribute name="attributeFormDefault" type="xs:formChoice" use="optional"
                    
default="unqualified"/>
                <
xs:attribute name="elementFormDefault" type="xs:formChoice" use="optional"
                    
default="unqualified"/>
                <
xs:attribute name="id" type="xs:ID"/>
                <
xs:attribute ref="xml:lang"/>
            </
xs:extension>
        </
xs:complexContent>
    </
xs:complexType>
    <
xs:key name="element">
        <
xs:selector xpath="xs:element"/>
        <
xs:field xpath="@name"/>
    </
xs:key>
    <
xs:key name="attribute">
        <
xs:selector xpath="xs:attribute"/>
        <
xs:field xpath="@name"/>
    </
xs:key>
    <
xs:key name="type">
        <
xs:selector xpath="xs:complexType|xs:simpleType"/>
        <
xs:field xpath="@name"/>
    </
xs:key>
    <
xs:key name="group">
        <
xs:selector xpath="xs:group"/>
        <
xs:field xpath="@name"/>
    </
xs:key>
    <
xs:key name="attributeGroup">
        <
xs:selector xpath="xs:attributeGroup"/>
        <
xs:field xpath="@name"/>
    </
xs:key>
    <
xs:key name="notation">
        <
xs:selector xpath="xs:notation"/>
        <
xs:field xpath="@name"/>
    </
xs:key>
    <
xs:key name="identityConstraint">
        <
xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/>
        <
xs:field xpath="@name"/>
    </
xs:key>
</
xs:element>


Documentation

See also: http://www.w3.org/TR/xmlschema-1/#element-schema


element schema


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.