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

<notation> and namespaces

From: Elena Litani <hlitani@jtcsv.com>
Date: Thu, 22 Feb 2001 12:31:57 -0500
Message-ID: <3A954D0D.FCCD310A@jtcsv.com>
To: xmlschema-dev@w3.org
Let say we have the following: 
  <notation name="jpeg" SYSTEM="pw.exe"/>

  <simpleType name="myNotation">
   <restriction base="NOTATION">
     <enumeration value="jpeg"/>
   </restriction>
  </simpleType>
 
  <element name="picture">
    <complexType>
      <complexContent>
        <extension base="xs:binary">
          <attribute name="pictype" type="myNotation"/>
        </extension>
      </complexContent>
    </complexType>
  </element>
 
Everything works fine in above case.
However, is it possible for user to import schema with <notation>
definitions? In other words, is it possible to have 2 notation
declarations, with same name but from a different namespace? 

If yes, how do we specify "value" on enumeration?  
Enumeration value must be string (according to datatypes), but in fact
we need QNAME to differentiate between notations in different
namespaces.

Am I missing something? 

Thank you,
Elena
Received on Thursday, 22 February 2001 12:30:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 11:13:16 GMT