element dictionary

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

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="dictionary" id="el.dictionary">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">A dictionary</div>
            <
div class="description">
                <
p>A dictionary is a container for
                    
<a href="el.entry">entry</a>
elements. Dictionaries can also contain unit-related information.
</p>
                <
p>The dictRef attribute on a
                    
<tt>dictionary</tt>
element
sets a namespace-like prefix allowing the dictionary to be referenced from
within the document. In general dictionaries are
referenced from an element using the
                    
<a href="gp.dictRefGroup">dictRef</a>
attribute.
</p>
            </
div>
            <
div class="example">
                <
pre>
<stm:dictionary xmlns:stm="http://www.xml-cml.org/schema/stmml">
<stm:entry id="a001" term="Amplitude for charge density mixing"
dataType="stm:decimal"
units="arbitrary">
<stm:annotation>
<stm:documentation>
<div class="summary">Amplitude for charge density mixing</div>
<div class="description">Not yet filled in...</div>
</stm:documentation>
</stm:annotation>
<stm:alternative type="abbreviation">CDMixAmp</stm:alternative>
</stm:entry>
</stm:dictionary>
                
</pre>
            </
div>
            <
div class="example">
                <
p>
                    <
tt>dictionary</tt>
can be used in an instance
document to reference the dictionary used. Example:
                
</p>
                <
pre>
<list>
<dictionary
dictRef="core" href="../dictionary/coreDict.xml"/>
</list>
                
</pre>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:complexType>
        <
xsd:sequence>
            <
xsd:element ref="unitList" minOccurs="0" maxOccurs="unbounded">
                <
xsd:annotation>
                    <
xsd:documentation>
                        <
div class="description">
                            <
p>This is so that a reference to a UnitList can be put in a dictionary.</p>
                        </
div>
                    </
xsd:documentation>
                </
xsd:annotation>
            </
xsd:element>
            <
xsd:element ref="annotation" minOccurs="0" maxOccurs="unbounded"/>
            <
xsd:element ref="description" minOccurs="0" maxOccurs="unbounded"/>
            <
xsd:element ref="entry" minOccurs="0" maxOccurs="unbounded"/>
        </
xsd:sequence>
        <
xsd:attributeGroup ref="tit_id_conv_dictGroup"/>
        <
xsd:attribute name="href" type="xsd:anyURI" id="att.dictionary.href">
            <
xsd:annotation>
                <
xsd:documentation>
                    <
div class="summary">URI giving the location of the document. Mandatory if
                        
<tt>dictRef</tt>
present.
</div>
                </
xsd:documentation>
            </
xsd:annotation>
        </
xsd:attribute>
    </
xsd:complexType>
</
xsd:element>


Documentation

A dictionary

A dictionary is a container for entry elements. Dictionaries can also contain unit-related information.

The dictRef attribute on a dictionary element sets a namespace-like prefix allowing the dictionary to be referenced from within the document. In general dictionaries are referenced from an element using the dictRef attribute.

<stm:dictionary xmlns:stm="http://www.xml-cml.org/schema/stmml">
  <stm:entry id="a001" term="Amplitude for charge density mixing"
    dataType="stm:decimal"
    units="arbitrary">
    <stm:annotation>
      <stm:documentation>
        <div class="summary">Amplitude for charge density mixing</div>
        <div class="description">Not yet filled in...</div>
      </stm:documentation>
    </stm:annotation>
    <stm:alternative type="abbreviation">CDMixAmp</stm:alternative>
  </stm:entry>
</stm:dictionary>

dictionary can be used in an instance document to reference the dictionary used. Example:

<list>
  <dictionary
     dictRef="core" href="../dictionary/coreDict.xml"/>
</list>


element dictionary


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.