element enumeration

element {http://www.xml-cml.org/schema/stmml}enumeration

Abstractfalse (This can be used in an instance)
Nillablefalse (Instance values cannot use xsi:nil)
Target Namespacehttp://www.xml-cml.org/schema/stmml
Declared Namespacesxmlns:sch=http://www.ascc.net/xml/schematron
xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns=http://www.xml-cml.org/schema/stmml


Source

<xsd:element name="enumeration" id="el.enumeration">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">
An enumeration of string values associated
with an
                
<a href="el.entry">entry</a>
            </
div>
            <
div class="description">
                <
p>
An enumeration of string values. Used where a dictionary entry constrains
the possible values in a document instance. The dataTypes (if any) must all be
identical and are defined by the dataType of the containing element.
                
</p>
            </
div>
            <
div class="example">
                <
pre>
<entry term="crystal system" id="cryst1" dataType="string">
<definition>A crystal system</definition>
<enumeration value="triclinic">
<annotation>
<documentation>
<div class="summary">No constraints on lengths and angles</div>
</documentation>
</annotation>
</enumeration>
<enumeration value="monoclinic">
<annotation>
<documentation>
<div class="summary">Two cell angles are right angles; no other constraints</div>
</documentation>
</annotation>
</enumeration>
<enumeration value="orthorhombic">
<annotation>
<documentation>
<div class="summary">All three angles are right angles; no other constraints</div>
</documentation>
</annotation>
</enumeration>
<enumeration value="tetragonal">
<annotation>
<documentation>
<div class="summary">Fourfold axis of symmetry; All three angles are right angles; two equal cell lengths; no other constraints</div>
</documentation>
</annotation>
</enumeration>
<enumeration value="trigonal">
<annotation>
<documentation>
<div class="summary">Threefold axis of symmetry; Two angles are right angles; one is 120 degrees; two equal lengths; no other constraints</div>
</documentation>
</annotation>
</enumeration>
<enumeration value="hexagonal">
<annotation>
<documentation>
<div class="summary">Sixfold axis of symmetry; Two angles are right angles; one is 120 degrees; two equal lengths; no other constraints</div>
</documentation>
</annotation>
</enumeration>
<enumeration value="cubic">
<annotation>
<documentation>
<div class="summary">All three angles are right angles; all cell lengths are equal</div>
</documentation>
</annotation>
</enumeration>
</entry>
                
</pre>
            </
div>
            <
div class="description">
                <
p>
An enumeration of string values. The dataTypes (if any) must all be
identical and are defined by the dataType of the containing element.
                
</p>
                <
p>Documentation can be added through an
                    
<a href="el.enumeration">enumeration</a>
child
</p>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:complexType>
        <
xsd:sequence>
            <
xsd:element ref="annotation" minOccurs="0"/>
        </
xsd:sequence>
        <
xsd:attribute name="value" type="xsd:string" id="att.enumeration.value">
            <
xsd:annotation>
                <
xsd:documentation>
                    <
div class="summary">The value of the enumerated element.</div>
                    <
div class="description">
Must be compatible
with the dataType of the containing element (not schema-checkable directly
but possible if dictionary is transformed to schema).
                    
</div>
                </
xsd:documentation>
            </
xsd:annotation>
        </
xsd:attribute>
    </
xsd:complexType>
</
xsd:element>


Documentation

An enumeration of string values associated with an entry

An enumeration of string values. Used where a dictionary entry constrains the possible values in a document instance. The dataTypes (if any) must all be identical and are defined by the dataType of the containing element.

<entry term="crystal system" id="cryst1" dataType="string">
  <definition>A crystal system</definition>
  <enumeration value="triclinic">
    <annotation>
      <documentation>
        <div class="summary">No constraints on lengths and angles</div>
      </documentation>
    </annotation>
  </enumeration>
  <enumeration value="monoclinic">
    <annotation>
      <documentation>
        <div class="summary">Two cell angles are right angles; no other constraints</div>
      </documentation>
    </annotation>
  </enumeration>
  <enumeration value="orthorhombic">
    <annotation>
      <documentation>
        <div class="summary">All three angles are right angles; no other constraints</div>
      </documentation>
    </annotation>
  </enumeration>
  <enumeration value="tetragonal">
    <annotation>
      <documentation>
        <div class="summary">Fourfold axis of symmetry; All three angles are right angles; two equal cell lengths; no other constraints</div>
      </documentation>
    </annotation>
  </enumeration>
  <enumeration value="trigonal">
    <annotation>
      <documentation>
        <div class="summary">Threefold axis of symmetry; Two angles are right angles; one is 120 degrees; two equal lengths; no other constraints</div>
      </documentation>
    </annotation>
  </enumeration>
  <enumeration value="hexagonal">
    <annotation>
      <documentation>
        <div class="summary">Sixfold axis of symmetry; Two angles are right angles; one is 120 degrees; two equal lengths; no other constraints</div>
      </documentation>
    </annotation>
  </enumeration>
  <enumeration value="cubic">
    <annotation>
      <documentation>
        <div class="summary">All three angles are right angles; all cell lengths are equal</div>
      </documentation>
    </annotation>
  </enumeration>
</entry>

An enumeration of string values. The dataTypes (if any) must all be identical and are defined by the dataType of the containing element.

Documentation can be added through an enumeration child



element enumeration


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.