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

Re: What's wrong with namespaces? Some observations andsuggest

  • From: Amelia A Lewis <amyzing@talsever.com>
  • To: xml-dev@lists.xml.org
  • Date: Sat, 4 Dec 2010 20:36:40 -0500

Re:  What's wrong with namespaces? Some observations andsuggest
On Sun, 05 Dec 2010 01:18:58 +0100, Bjoern Hoehrmann wrote:
> What was so difficult to understand about the diagnostics messages she
> got from the tool she was using? Surely it noted there are no "html"

What diagnostic messages?  The expression matched nothing.

> elements in the document but there is a {"http://www.w3.org/1999/xhtml",
> "html"} element in the document and that in order to match it, she has
> to setup a namespace binding and use the prefix to match it? Tools do
> that these days, right?

Why do you think that programming tools would do that?  This wasn't 
some consumer-oriented piece of frippery, it was a programming language 
(Python, to be exact).  It didn't match.  That's not an exceptional 
condition.  The fact that it would match if you applied a namespace 
isn't in the purview of the developers of the language to point out, I 
wouldn't think.  Anyone who did it would be certain to get a number
of sarcastic emails saying "*thank* you for the message that tells me
how to match what I don't *want* to match!" (it would be reasonable to
use that expression to check for the (incorrect?) appearance of
non-namespaced elements where namespaced ones were expected, for
instance).  You can't give an error message because an expression
doesn't match anything.  Not matching anything may not be an error.

Besides, as I pointed out, she *had* bound the namespace (to the
default prefix).  Not that XPath cares.

Amelia A. Lewis                    amyzing {at} talsever.com
The one thing you can't trade for your heart's desire is your heart.
		-- Miles Vorkosigan

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.
First Name
Last Name
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.