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

Re: [Sax-devel] Re: SAX survey: expected local name for non-namespace q


namespace name expected
At 04:07 PM 6/2/2002 -0400, Glenn Marcy wrote:
>In reading this thread main thing that I see confusing people
>is the name of the parameter "qName".  I remember when it was
>first something like "rawName", which wasn't as well aligned
>with terms in the Namespace spec.  However, it was perhaps a
>slightly less confusing name with Namespaces turned off.

I'd call the change to qName an unfortunate historical accident at this 
point, especially given than common advice when using namespace-aware 
processing is simply to ignore the qName entirely.

>   The
>"dual nature" of the methods in the interface are unfortunate.
>With the Namespaces feature turned off, the only information
>to pass to the application is the "literal name" specified.
>With Namespaces turned on, there are the namespace name and
>the local part parameters to report, and the option that the
>"literal name" (which is a QName in the Namespaces spec) is
>also of interest for some applications that want to access
>the prefix.  The "qName" parameter is this literal name from
>the document, which is a slightly odd name for reporting that
>information when Namespaces is turned off.  However, that is
>the parameter that is intended to be used for passing this
>information.  I find it quite confusing that people want to
>duplicate this information in the interfaces if Namespaces
>is turned off and that they want to do so using yet another
>parameter that has a logical meaning only when Namespaces is
>turned on !!

I'm not sure why you find it confusing or difficult.  I find the identifier 
"QName" completely and utterly meaningless in a namespace-unaware 
environment.  QName doesn't appear at all in XML 1.0.  "Local name" doesn't 
appear either, but I don't believe that it's as alien a concept.

Simon St.Laurent
"Every day in every way I'm getting better and better." - Emile Coue


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.