simpleType namespaceRefType

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

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}string (by restriction)
 {http://www.xml-cml.org/schema/cml2/core}namespaceRefType
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="namespaceRefType" id="st.namespaceRefType">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">A string referencing a dictionary, units, convention or other metadata.</div>
            <
div class="description">
                <
p>The namespace is optional but recommended where possible</p>
                <
p>
Note: this convention is only used within STMML and related languages;
it is NOT a generic URI.
                
</p>
            </
div>
            <
div class="example">
                <
pre>
<stmml title="namespace example">

<list>
<!-- dictRef is of namespaceRefType -->
<scalar dictRef="chem:mpt">123</scalar>
<!-- error -->
<scalar dictRef="mpt23">123</scalar>
</list>
</stmml>
                
</pre>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:restriction base="xsd:string">
        <
xsd:annotation>
            <
xsd:documentation>
                <
div class="description">
                    <
p>The namespace prefix must start with an alpha character and can only contain alphanumeric and '_'. The suffix can have characters from the XML ID specification (alphanumeric, '_', '.' and '-'</p>
                </
div>
            </
xsd:documentation>
        </
xsd:annotation>
        <
xsd:pattern value="([A-Za-z][A-Za-z0-9_]*:)?[A-Za-z][A-Za-z0-9_\.\-]*"/>
    </
xsd:restriction>
</
xsd:simpleType>


Documentation

A string referencing a dictionary, units, convention or other metadata.

The namespace is optional but recommended where possible

Note: this convention is only used within STMML and related languages; it is NOT a generic URI.

<stmml title="namespace example">
<list>
<!-- dictRef is of namespaceRefType -->
  <scalar dictRef="chem:mpt">123</scalar>
<!-- error -->
  <scalar dictRef="mpt23">123</scalar>
</list>
</stmml>
        


simpleType namespaceRefType


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.