Definition Type: SimpleType
Name: formulaType
Namespace: http://www.xml-cml.org/schema
Containing Schema: schema.xsd
Documentation:
A concise representation for a molecular formula. This MUST adhere to a whitespaced syntax so that it is trivially machine-parsable. Each element is followed by its count (which may be decimal), and the string is optionally ended by a formal charge (of form d or -d, i.e. no '+') NO brackets or other nesting is allowed. 2005-08-30: allowed decimal points
Collapse XSD Schema Diagram:
XSD Diagram of formulaType in schema schema_xsd (Chemical Markup Language (CML))
Collapse XSD Schema Code:
<xsd:simpleType name="formulaType" id="st.formulaType">
    <xsd:annotation>
        <xsd:documentation>
            <h:div class="summary" xmlns:h="http://www.w3.org/1999/xhtml">A concise representation for a molecular formula.</h:div>
            <h:div class="description" xmlns:h="http://www.w3.org/1999/xhtml">This MUST adhere to a whitespaced syntax so that it is trivially 
            machine-parsable. Each element is followed by its count (which may be decimal), 
            and the string is optionally ended by a formal charge (of form d or -d, i.e. no '+')
            NO brackets or other nesting is allowed.</h:div>
            <h:div class="example" href="formulaType1.xml" xmlns:h="http://www.w3.org/1999/xhtml" />
            <h:div class="curation" xmlns:h="http://www.w3.org/1999/xhtml">2005-08-30: allowed decimal points</h:div>
        </xsd:documentation>
        <xsd:appinfo />
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
        <!-- obsoleted
        <xsd:pattern value="\s*([A-Z][a-z]?\s+([1-9][0-9]*(\.[0-9]*)?\s*))+(\s+[-|+]?[0-9]+)?\s*"/>-->
        <!-- failed to support charge
        <xsd:pattern value="\s*([A-Z][a-z]?\s+(([0-9]+(\.[0-9]*)?)|(\.[0-9]*))?\s*)+"/>-->
        <xsd:pattern value="\s*([A-Z][a-z]?\s+(([0-9]+(\.[0-9]*)?)|(\.[0-9]*))?\s*)+(\s+[\-|+]?[0-9]+)?\s*" />
    </xsd:restriction>
</xsd:simpleType>
Collapse Facets:
Facet Value
Pattern \s*([A-Z][a-z]?\s+(([0-9]+(\.[0-9]*)?)|(\.[0-9]*))?\s*)+(\s+[\-|+]?[0-9]+)?\s*
Collapse Derivation Tree:
Collapse References:
nsA:concise, nsA:formula