RELAX NG by Eric van der Vlist will be published by O'Reilly & Associates (ISBN: 0596004214)
You are welcome to use our annotation system to give your feedback.
xsd:NOTATION — Emulation of the XML 1.0 feature.
xsd:anySimpleType
xsd:NOTATION
none
enumeration, length, maxLength, minLength, pattern.
<xsd:simpleType name="NOTATION" id="NOTATION">
<xsd:restriction base="xsd:anySimpleType">
<xsd:whiteSpace value="collapse" fixed="true"/>
</xsd:restriction>
</xsd:simpleType>
|
For W3C XML Schema, the value and lexical spaces of xsd:NOTATION are references to notations declared though the xsd:notation element. This element doesn't exist in RELAX NG where this datatype can be seen as a synonym for xsd:QName with backward compatibility for W3C XML Schema.
Notations are very seldom used in real-world applications.
One cannot use xsd:notation directly, but must derive it as shown in the Example.
<xsd:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsd:notation name="jpeg" public="image/jpeg"
system="file:///usr/bin/xv"/>
<xsd:notation name="gif" public="image/gif"
system="file:///usr/bin/xv"/>
<xsd:notation name="png" public="image/png"
system="file:///usr/bin/xv"/>
<xsd:notation name="svg" public="image/svg"
system="file:///usr/bin/xsmiles"/>
<xsd:notation name="pdf" public="application/pdf"
system="file:///usr/bin/acroread"/>
<xsd:simpleType name="graphicalFormat">
<xsd:restriction base="xsd:NOTATION">
<xsd:enumeration value="jpeg"/>
<xsd:enumeration value="gif"/>
<xsd:enumeration value="png"/>
<xsd:enumeration value="svg"/>
<xsd:enumeration value="pdf"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="picture">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:base64Binary">
<xsd:attribute name="type" type="graphicalFormat"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:schema> |
You are welcome to use our annotation system to give your feedback.
[Annotations for this page]
All text is copyright Eric van der Vlist, Dyomedea. During development, I give permission for non-commercial copying for educational and review purposes. After publication, all text will be released under the Free Software Foundation GFDL.