Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

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>