attributeGroup dictRef

attributeGroup {http://www.xml-cml.org/schema/stmml}dictRef

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

Usage:

    <xsd:attributeGroup ref="dictRef"/>

May be used in:
 another global attributeGroup
 a complexType
 an extension or restriction of simple or complex content

Attributes:

dictRef


Source

<xsd:attributeGroup name="dictRef" id="attGp.dictRef">
    <
xsd:attribute id="att.dictRef" name="dictRef" type="namespaceRefType">
        <
xsd:annotation>
            <
xsd:documentation>
                <
div class="summary">
                    <
p>A reference to a dictionary entry.</p>
                </
div>
                <
div class="description">
                    <
p>Elements in data instances such as
                        
<a href="el.scalar">scalar</a>
may have a
                        
<tt>dictRef</tt>
attribute to point to an entry in a dictionary. To avoid
excessive use of (mutable) filenames and URIs we recommend a namespace
prefix, mapped to a namespace URI in the normal manner. In this case,
of course, the namespace URI must point to a real XML document containing
                        
<a href="el.entry">entry</a>
elements and validated against STMML Schema.
</p>
                    <
p>
Where there is concern about the dictionary becoming separated from the document
the dictionary entries can be physically included as part of the data instance
and the normal XPointer addressing mechanism can be used.
                    
</p>
                    <
p>This attribute can also be used on
                        
<a href="el.dictionary">dictionary</a>
elements to define the namespace prefix
</p>
                </
div>
                <
div class="example">
                    <
pre>
<scalar dataType="xsd:float" title="surfaceArea"
dictRef="cmlPhys:surfArea"
xmlns:cmlPhys="http://www.xml-cml.org/dict/physical"
units="units:cm2">50</scalar>
                    
</pre>
                </
div>
                <
div class="example">
                    <
pre>
<stm:list xmlns:stm="http://www.xml-cml.org/schema/stmml">
<stm:observation>
<p>We observed <object count="3" dictRef="foo:p1"/>
constructing dwellings of different material</p>
</stm:observation>
<stm:entry id="p1" term="pig">
<stm:definition>A domesticated animal.</stm:definition>
<stm:description>Predators include wolves</stm:description>
<stm:description class="scientificName">Sus scrofa</stm:description>
</stm:entry>
</stm:list>
                    
</pre>
                </
div>
            </
xsd:documentation>
        </
xsd:annotation>
    </
xsd:attribute>
</
xsd:attributeGroup>


attributeGroup dictRef


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.