element scalar

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

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}string (by extension)
 {http://www.xml-cml.org/schema/stmml}scalar
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="scalar" id="el.scalar">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">An element to hold scalar data.</div>
            <
div class="description">
                <
p>
                    <
tt>scalar</tt>
holds scalar data under a single
generic container. The semantics are usually resolved by
linking to a dictionary.
                    
<b>scalar</b>
defaults to a scalar string but
has attributes which affect the type.
                
</p>
                <
p>
                    <
tt>scalar</tt>
does not necessarily reflect a physical object (for which
                    
<a href="el.object">object</a>
should be used). It may reflect a property of an object
such as temperature, size, etc.
                
</p>
                <
p>
Note that normal Schema validation tools cannot validate the data type
of
                    
<b>scalar</b>
(it is defined as
                    
<tt>string</tt>
), but that a temporary schema
can be constructed from the type and used for validation. Also the type
can be contained in a dictionary and software could decide to retrieve this
and use it for validation.
                
</p>
            </
div>
            <
div class="example">
                <
pre>
<scalar
dataType="xsd:decimal"
errorValue="1.0"
errorBasis="observedStandardDeviation"
title="body weight"
dictRef="zoo:bodywt"
units="units:g">34.3</scalar>
                
</pre>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:complexType>
        <
xsd:simpleContent>
            <
xsd:extension base="xsd:string">
                <
xsd:attributeGroup ref="tit_id_conv_dictGroup"/>
                <
xsd:attributeGroup ref="dataType"/>
                <
xsd:attributeGroup ref="errorValue"/>
                <
xsd:attributeGroup ref="errorBasis"/>
                <
xsd:attributeGroup ref="min"/>
                <
xsd:attributeGroup ref="max"/>
                <
xsd:attributeGroup ref="units"/>
            </
xsd:extension>
        </
xsd:simpleContent>
    </
xsd:complexType>
</
xsd:element>


Documentation

An element to hold scalar data.

scalar holds scalar data under a single generic container. The semantics are usually resolved by linking to a dictionary. scalar defaults to a scalar string but has attributes which affect the type.

scalar does not necessarily reflect a physical object (for which object should be used). It may reflect a property of an object such as temperature, size, etc.

Note that normal Schema validation tools cannot validate the data type of scalar (it is defined as string), but that a temporary schema can be constructed from the type and used for validation. Also the type can be contained in a dictionary and software could decide to retrieve this and use it for validation.

<scalar
    dataType="xsd:decimal"
    errorValue="1.0"
    errorBasis="observedStandardDeviation"
    title="body weight"
    dictRef="zoo:bodywt"
    units="units:g">34.3</scalar>
        


element scalar


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.