simpleType atomIDType

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

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}string (by restriction)
 {http://www.xml-cml.org/schema/cml2/core}atomIDType
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="atomIDType" id="st.atomIDType">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">An identifier for an atom.</div>
            <
div class="description">
                <
p>
Of the form prefix:suffix where prefix and suffix
are purely alphanumeric (with _ and -) and prefix
is optional. This is similar to XML IDs (and we promote
this as good practice for atomIDs. Other punctuation and
whitespace is forbidden, so IDs from (say) PDB files are
not satisfactory.
                
</p>
                <
p>
The prefix is intended to form a pseudo-namespace so that
atom IDs in different molecules may have identical suffixes.
It is also useful if the prefix is the ID for the molecule
(though this clearly has its limitation). Atom IDs should not
be typed as XML IDs since they may not validate.
                
</p>
            </
div>
            <
div class="example">
                <
pre>
<cml title="example of IDs on atoms">
<molecule id="m1">
<atomArray>
<!-- this atom might be referenced as m1:a2. This is not formally
part of CML yet -->
<atom id="a2" elementType="O"/>
</atomArray>
</molecule>
<molecule id="m2">
<atomArray>
<!-- this atom might be referenced as m2:a2. This is not formally
part of CML yet -->
<atom id="a2" elementType="O"/>
</atomArray>
</molecule>
</cml>
                
</pre>
            </
div>
        </
xsd:documentation>
        <
xsd:appinfo/>
    </
xsd:annotation>
    <
xsd:restriction base="xsd:string">
        <
xsd:pattern value="[A-Za-z0-9_\-]+(:[A-Za-z0-9_\-]+)?"/>
    </
xsd:restriction>
</
xsd:simpleType>


Documentation

An identifier for an atom.

Of the form prefix:suffix where prefix and suffix are purely alphanumeric (with _ and -) and prefix is optional. This is similar to XML IDs (and we promote this as good practice for atomIDs. Other punctuation and whitespace is forbidden, so IDs from (say) PDB files are not satisfactory.

The prefix is intended to form a pseudo-namespace so that atom IDs in different molecules may have identical suffixes. It is also useful if the prefix is the ID for the molecule (though this clearly has its limitation). Atom IDs should not be typed as XML IDs since they may not validate.

<cml title="example of IDs on atoms">
  <molecule id="m1">
    <atomArray>
<!-- this atom might be referenced as m1:a2. This is not formally
     part of CML yet -->
      <atom id="a2" elementType="O"/>
    </atomArray>
  </molecule>
  <molecule id="m2">
    <atomArray>
<!-- this atom might be referenced as m2:a2. This is not formally
     part of CML yet -->
      <atom id="a2" elementType="O"/>
    </atomArray>
  </molecule>
</cml>


simpleType atomIDType


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.