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

Re: Relative Namespaces

  • From: Jeff Rafter <jeffrafter@e...>
  • To: "Thomas B. Passin" <tpassin@h...>,Charles Reitzel <creitzel@m...>
  • Date: Wed, 14 Mar 2001 23:47:01 -0800

xpath examples namespaces
Thanks for the comments...

I did some hunting for that quote and I think the issue for me is suddenly
more clouded.  Tim Bray commented on the issue when Namespaces wrt SAX2 was
being discussed [1] in the January thread "SAX2: Namespace Processing and
NSUtils helper class"

[1] http://lists.xml.org/archives/xml-dev/200001/msg00119.html

'Pardon for flogging this possibly-dead horse, but you have to read the
text of the namespace spec carefully to realise that you just can't ever
have a namespace URI whose value is "".  We should have put in a sentence
in section 5.2 saying "Note that as a consequence of this rule, it is not
possible to have a namespace whose value is the empty string."'

The mail cited is pretty much the final word in that discussion regarding
the null namespace issue.  The DOM's interpretation is mentioned a couple of
mails later, interestingly.  This seems totally at odds with the DOM's
interpretation though the DOM wording is loose-- opting out because it "does
no lexical analysis"-- but it seems like it could check for an empty string
as easily as checking for null.

I think I am beginning to see some of the big picture here, but can someone
explain how the Schema view fits in?

Also to clarify-- is Tim saying that the following is pointless because it
equates to a prefixed name being treated as a non namespace name or is he
saying that the document is in error wrt to namespaces because the prefix
can not logically be resolved?

  <foo:bar xmlns:foo="http://foo.com">
    <foo:baz xmlns:foo=""/>
  </foo:bar>

Thanks for all of the patience...

Jeff



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.