XML Tutorial/XML Schema/NOTATION
Версия от 18:22, 25 мая 2010; (обсуждение)
The NOTATION data type represents the NOTATION attribute type of XML 1.0 Second Edition
<notation id="ID"
name="NCName"
public="anyURI"
system="anyURI"
{any attributes with non-schema namespace}
>
Content: (annotation?)
</notation>
<!-- schema -->
<xsd:notation name="swf" public="image/swf" system="SWF_viewer.exe"/>
<xsd:element name="myAnimation">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="xsd:anyType">
<xsd:attribute name="note" type="notationType"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="notationType">
<xsd:restriction base="xsd:NOTATION">
<xsd:enumeration value="swf"/>
<xsd:enumeration value="fla"/>
</xsd:restriction>
</xsd:simpleType>
<!-- instance document -->
<myAnimation note="swf">Schema Lesson</myAnimation>