element selector

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

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}annotated (by extension)
   {http://www.w3.org/2001/XMLSchema}selector
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="selector" id="selector">
    <
xs:annotation>
        <
xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-selector"/>
    </
xs:annotation>
    <
xs:complexType mixed="false">
        <
xs:complexContent>
            <
xs:extension base="xs:annotated">
                <
xs:attribute name="xpath" use="required">
                    <
xs:simpleType>
                        <
xs:annotation>
                            <
xs:documentation>
A subset of XPath expressions for use
in selectors
                            
</xs:documentation>
                            <
xs:documentation>
A utility type, not for public
use
                            
</xs:documentation>
                        </
xs:annotation>
                        <
xs:restriction base="xs:token">
                            <
xs:annotation>
                                <
xs:documentation>
The following pattern is intended to allow XPath
expressions per the following EBNF:
Selector ::= Path ( '|' Path )*
Path ::= ('.//')? Step ( '/' Step )*
Step ::= '.' | NameTest
NameTest ::= QName | '*' | NCName ':' '*'
child:: is also allowed
                                
</xs:documentation>
                            </
xs:annotation>
                            <
xs:pattern
                                
value="(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*(\|(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)*"/>
                        </
xs:restriction>
                    </
xs:simpleType>
                </
xs:attribute>
            </
xs:extension>
        </
xs:complexContent>
    </
xs:complexType>
</
xs:element>


Documentation

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


element selector


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.