XML Tutorial/XML Schema/NOTATION — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:26, 26 мая 2010
The NOTATION data type represents the NOTATION attribute type of XML 1.0 Second Edition
<source lang="xml">
<notation id="ID"
name="NCName" public="anyURI" system="anyURI" {any attributes with non-schema namespace}
>
Content: (annotation?)
</notation>
<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>
<myAnimation note="swf">Schema Lesson</myAnimation></source>