W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

NOTATIONs

From: Elena Litani <hlitani@jtcsv.com>
Date: Mon, 19 Feb 2001 13:37:39 -0500
Message-ID: <3A9167F3.8C46D3F0@jtcsv.com>
To: xmlschema-dev@w3.org
Hi,
According to datatypes: "It is an error for NOTATION to be used directly
in a schema. Only datatypes that are derived from NOTATION by specifying
a value for enumeration can be used in a schema. Furthermore, the value
of all enumeration facets must match the name of a notation declared in
the current schema."

However, in structures I can find example:
<xs:notation name="jpeg"
             public="image/jpeg" system="viewer.exe" />
<xs:element name="picture">
 <xs:complexType>
  <xs:complexContent>
   <xs:extension base="xs:binary">
    <xs:attribute name="pictype" type="xs:NOTATION"/>
   </xs:extension>
  </xs:complexContent>
 </xs:complexType>
</xs:element>

Is " <xs:attribute name="pictype" type="xs:NOTATION"/>" allowed? 
And if yes, what do you mean by "It is an error for NOTATION to be used
directly in a schema."? [datatypes].

Thank you,
Elena
Received on Monday, 19 February 2001 13:37:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC