Re: <notation> and namespaces

Elena Litani <hlitani@jtcsv.com> writes:

> 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.

Actually, the above looks a bit dodgy wrt namespace prefixes -- I
presume you meant xs:element etc. throughout.

> 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? 

Yes.

> 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? 

No.  In the next draft, it will be clear that NOTATION is derived from 
QName, and the values will be appropriately interpreted.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Monday, 26 February 2001 12:17:58 UTC