element name

element {http://www.xml-cml.org/schema/cml2/core}name

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}string (by extension)
 {http://www.xml-cml.org/schema/cml2/core}name
Abstractfalse (This can be used in an instance)
Nillablefalse (Instance values cannot use xsi:nil)
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:element name="name" id="el.name">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">A string identifying a
                
<a href="el.molecule">molecule</a>
,
                
<a href="el.atom">atom</a>
or (possibly) other elements.
</div>
            <
div class="description">
                <
p>
                    <
tt>name</tt>
is used for chemical names (formal and trivial)
for molecules and also for identifiers such as CAS registry and RTECS.
It can also be used for labelling atoms. It should be used
in preference to the
                    
<tt>title</tt>
attribute because it is repeatable and can be linked to a
dictionary.
                
</p>
                <
p>
Constraining patterns can be described in the dictionary and used to
validate
                    
<tt>name</tt>
s.
</p>
            </
div>
            <
div class="example">
                <
pre>
<cml title="name example">
<molecule id="aspirin">
<name convention="INN"> name="builtin" type="xsd:string"in</name>
<name convention="IUPAC">2-acetoxybenzoic acid</name>
<name convention="trivial">acetylsalicylic acid</name>
</molecule>
</cml>
                
</pre>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:complexType>
        <
xsd:simpleContent>
            <
xsd:extension base="xsd:string">
                <
xsd:attributeGroup ref="id"/>
                <
xsd:attributeGroup ref="convention"/>
                <
xsd:attributeGroup ref="dictRef"/>
            </
xsd:extension>
        </
xsd:simpleContent>
    </
xsd:complexType>
</
xsd:element>


Documentation

A string identifying a molecule, atom or (possibly) other elements.

name is used for chemical names (formal and trivial) for molecules and also for identifiers such as CAS registry and RTECS. It can also be used for labelling atoms. It should be used in preference to the title attribute because it is repeatable and can be linked to a dictionary.

Constraining patterns can be described in the dictionary and used to validate names.

<cml title="name example">
  <molecule id="aspirin">
    <name convention="INN"> name="builtin" type="xsd:string"in</name>
    <name convention="IUPAC">2-acetoxybenzoic acid</name>
    <name convention="trivial">acetylsalicylic acid</name>
  </molecule>
</cml>
        


element name


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.