[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

<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
<notation> and namespaces
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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.