simpleType idType

simpleType {http://www.xml-cml.org/schema/cml2/core}idType

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}string (by restriction)
 {http://www.xml-cml.org/schema/cml2/core}idType
Derived Types
{http://www.xml-cml.org/schema/cml2/core}idType
 {http://www.xml-cml.org/schema/cml2/core}refType (by restriction)
Target Namespacehttp://www.xml-cml.org/schema/cml2/core
Declared Namespacesxmlns:val=http://www.w3.org/1999/XSL/TransformX
xmlns:stm=http://www.xml-cml.org/schema/stmml
xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:xlink=http://www.w3.org/1999/xlink
xmlns:cml=http://www.xml-cml.org/schema/cml2/core
xmlns=http://www.xml-cml.org/schema/cml2/core


Source

<xsd:simpleType name="idType" id="st.idType">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">A unique ID for an element.</div>
            <
div class="description">
                <
p>
This is not formally
of type ID (an XML NAME which must start with a letter and contain only letters,
digits and
                    
<tt>.-_:</tt>
). It is recommended that IDs start with a letter,
and contain no punctuation or whitespace. The function
                    
<tt>generate-id()</tt>
in XSLT will generate semantically void unique IDs.
</p>
                <
p>
It is difficult to ensure uniqueness when documents are merged. We suggest
namespacing IDs, perhaps using the containing elements as the base.
Thus
                    
<tt>mol3:a1</tt>
could be a useful unique ID.
However this is still experimental.
                
</p>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:restriction base="xsd:string">
        <
xsd:pattern value="([A-Za-z][A-Za-z0-9_-]*:)?[A-Za-z][A-Za-z0-9_\-\.]*"/>
    </
xsd:restriction>
</
xsd:simpleType>


Documentation

A unique ID for an element.

This is not formally of type ID (an XML NAME which must start with a letter and contain only letters, digits and .-_:). It is recommended that IDs start with a letter, and contain no punctuation or whitespace. The function generate-id() in XSLT will generate semantically void unique IDs.

It is difficult to ensure uniqueness when documents are merged. We suggest namespacing IDs, perhaps using the containing elements as the base. Thus mol3:a1 could be a useful unique ID. However this is still experimental.



simpleType idType


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.