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

Re: Why you should avoid Notation Declarations (by Kohsuke Kaw


Re:  Why you should avoid Notation Declarations (by Kohsuke Kaw
At 2005-02-23 10:11 +0000, Henry S. Thompson wrote:
>NOTATION isn't broken in W3C XML Schema, it's just grown up and uses
>namespaces, like all other named aspects of the spec.

Where in the XML Information Set 
http://www.w3.org/TR/2004/REC-xml-infoset-20040204 does a notation have a 
namespace-qualified name?

Elements (2.2) have [namespace name], [local name], and [prefix].

Attributes (2.3) have [namespace name], [local name], and [prefix].

Notations (2.10) just have [name].

>Things defined in W3C XML Schema schemas have names, which may be in
>namespaces.

But wouldn't the name in the information set need to, then, be namespace 
qualified?

>So if your schema document specifies a target namespace, the Notations
>you define in it will be in that namespace.
>
>So to refer to them, you have to use a qualified name.

Since the information set only includes [name], this would imply the prefix 
is not ignorable and there is no matching on the namespace URI.

>None of this should be surprising

Your statement surprised me quite a bit ... I never thought notations were 
namespace qualified.

I've always known that processing instruction targets may be named by 
notation names, and sure enough Processing Instruction Information Items 
2.6 has [notation], but nowhere there does it say the notation is 
namespace-qualified ... and I've never seen a processing instruction target 
needing to be namespace-qualified.

So, really, your statement was very surprising to me.  I'm anxious to learn 
more and be corrected in my thinking in this regard.

...................... Ken


--
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.