simpleType delimiterType

simpleType {http://www.xml-cml.org/schema/stmml}delimiterType

Type Heirarchy
{http://www.w3.org/2001/XMLSchema}string (by restriction)
 {http://www.xml-cml.org/schema/stmml}delimiterType
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:simpleType name="delimiterType" id="st.delimiterType">
    <
xsd:annotation>
        <
xsd:documentation>
            <
div class="summary">A non-whitespace character used in arrays to separate components</div>
            <
div class="description">
                <
p>Some STMML elements (such as
                    
<a href="el.array">array</a>
) have
content representing concatenated values. The default separator is
whitespace (which can be normalised) and this should be used whenever
possible. However in some cases the values are empty, or contain whitespace or other
problematic punctuation, and a delimiter is required.
                
</p>
                <
p>
Note that the content string MUST start and end with the delimiter so
there is no ambiguity as to what the components are. Only printable
characters from the ASCII character set should be used, and character
entities should be avoided.
                
</p>
                <
p>
When delimiters are used to separate precise whitespace this should always
consist of spaces and not the other allowed whitespace characters
(newline, tabs, etc.). If the latter are important it is probably best to redesign
the application.
                
</p>
            </
div>
            <
div class="example">
                <
pre><array size="4" dataType="xsd:string" delimiter="|">|A|B12||D and E|</array>
                    
<em>The values in the array are</em>
"A", "B12", "" (empty string) and "D and E"
                    
<em>note the spaces</em>
                </
pre>
            </
div>
        </
xsd:documentation>
    </
xsd:annotation>
    <
xsd:restriction base="xsd:string"/>
</
xsd:simpleType>


Documentation

A non-whitespace character used in arrays to separate components

Some STMML elements (such as array) have content representing concatenated values. The default separator is whitespace (which can be normalised) and this should be used whenever possible. However in some cases the values are empty, or contain whitespace or other problematic punctuation, and a delimiter is required.

Note that the content string MUST start and end with the delimiter so there is no ambiguity as to what the components are. Only printable characters from the ASCII character set should be used, and character entities should be avoided.

When delimiters are used to separate precise whitespace this should always consist of spaces and not the other allowed whitespace characters (newline, tabs, etc.). If the latter are important it is probably best to redesign the application.

<array size="4"  dataType="xsd:string" delimiter="|">|A|B12||D and   E|</array>
 <em>The values in the array are</em>
  "A", "B12", "" (empty string) and "D and   E"
 <em>note the spaces</em>
        


simpleType delimiterType


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.