Definition Type: Element
Name: scalar
Namespace: http://www.xml-cml.org/schema
Type: string:http://www.w3.org/2001/XMLSchema
Containing Schema: schema.xsd
Abstract
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.
Collapse XSD Schema Diagram:
Drilldown into unitType in schema schema_xsd Drilldown into unitType in schema schema_xsd Drilldown into multiplierToSI in schema schema_xsd Drilldown into multiplierToSI in schema schema_xsd Drilldown into constantToSI in schema schema_xsd Drilldown into constantToSI in schema schema_xsd Drilldown into units in schema schema_xsd Drilldown into units in schema schema_xsd Drilldown into ref in schema schema_xsd Drilldown into ref in schema schema_xsd Drilldown into max in schema schema_xsd Drilldown into max in schema schema_xsd Drilldown into min in schema schema_xsd Drilldown into min in schema schema_xsd Drilldown into errorBasis in schema schema_xsd Drilldown into errorBasis in schema schema_xsd Drilldown into errorValue in schema schema_xsd Drilldown into errorValue in schema schema_xsd Drilldown into dataType in schema schema_xsd Drilldown into dataType in schema schema_xsd Drilldown into dictRef in schema schema_xsd Drilldown into dictRef in schema schema_xsd Drilldown into convention in schema schema_xsd Drilldown into convention in schema schema_xsd Drilldown into id in schema schema_xsd Drilldown into id in schema schema_xsd Drilldown into title in schema schema_xsd Drilldown into title in schema schema_xsdXSD Diagram of scalar in schema schema_xsd (Chemical Markup Language (CML))
Collapse XSD Schema Code:
<xsd:element name="scalar" id="el.scalar">
    <xsd:annotation>
        <xsd:documentation>
            <h:div class="summary" xmlns:h="http://www.w3.org/1999/xhtml">An element to hold scalar data.</h:div>
            <h:div class="description" xmlns:h="http://www.w3.org/1999/xhtml">
                <h:tt>scalar</h:tt> holds scalar data under a single
            generic container. The semantics are usually resolved by
            linking to a dictionary.
             <h:b>scalar</h:b> defaults to a scalar string but
             has attributes which affect the type.
                <h:p><h:tt>scalar</h:tt> does not necessarily reflect a physical object (for which
         <h:a href="el.object">object</h:a> should be used). It may reflect a property of an object
         such as temperature, size, etc. </h:p>
                <h:p>Note that normal Schema validation tools cannot validate the data type 
         of <h:b>scalar</h:b> (it is defined as <h:tt>string</h: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.</h:p>
            </h:div>
            <h:div class="example" href="scalar1.xml" xmlns:h="http://www.w3.org/1999/xhtml" />
        </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attributeGroup ref="title" />
                <xsd:attributeGroup ref="id" />
                <xsd:attributeGroup ref="convention" />
                <xsd:attributeGroup ref="dictRef" />
                <xsd:attributeGroup ref="dataType" />
                <xsd:attributeGroup ref="errorValue" />
                <xsd:attributeGroup ref="errorBasis" />
                <xsd:attributeGroup ref="min" />
                <xsd:attributeGroup ref="max" />
                <xsd:attributeGroup ref="ref" />
                <xsd:attributeGroup ref="units" />
                <xsd:attributeGroup ref="constantToSI">
                    <xsd:annotation>
                        <xsd:documentation>
                            <h:div class="specific" xmlns:h="http://www.w3.org/1999/xhtml">Alternative to units</h:div>
                            <h:div class="description" xmlns:h="http://www.w3.org/1999/xhtml">Must be used in conjunction with unitType</h:div>
                            <h:div class="curation" xmlns:h="http://www.w3.org/1999/xhtml">2005-10-26: added</h:div>
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:attributeGroup>
                <xsd:attributeGroup ref="multiplierToSI">
                    <xsd:annotation>
                        <xsd:documentation>
                            <h:div class="specific" xmlns:h="http://www.w3.org/1999/xhtml">Alternative to units</h:div>
                            <h:div class="description" xmlns:h="http://www.w3.org/1999/xhtml">Must be used in conjunction with unitType</h:div>
                            <h:div class="curation" xmlns:h="http://www.w3.org/1999/xhtml">2005-10-26: added</h:div>
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:attributeGroup>
                <xsd:attributeGroup ref="unitType">
                    <xsd:annotation>
                        <xsd:documentation>
                            <h:div class="specific" xmlns:h="http://www.w3.org/1999/xhtml">Alternative to units</h:div>
                            <h:div class="description" xmlns:h="http://www.w3.org/1999/xhtml">Must be used in conjunction with multiplierToSI and/or constantToSI</h:div>
                            <h:div class="curation" xmlns:h="http://www.w3.org/1999/xhtml">2005-10-26: added</h:div>
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:attributeGroup>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
title nsA:title (Optional)
id nsA:id (Optional)
convention nsA:convention (Optional)
dictRef nsA:dictRef (Optional)
dataType nsA:dataType (Optional)
errorValue nsA:errorValue (Optional)
errorBasis nsA:errorBasis (Optional)
min nsA:min (Optional)
max nsA:max (Optional)
ref nsA:ref (Optional)
units nsA:units (Optional)
constantToSI nsA:constantToSI (Optional)
multiplierToSI nsA:multiplierToSI (Optional)
unitType nsA:unitType (Optional)