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

Re: What's wrong with namespaces? Some observations and sugges

  • From: Bjoern Hoehrmann <derhoermi@gmx.net>
  • To: Amelia A Lewis <amyzing@talsever.com>
  • Date: Sun, 05 Dec 2010 01:18:58 +0100

Re:  What's wrong with namespaces? Some observations and sugges
* Amelia A Lewis wrote:
>containing the expression.  I spent half an hour trying (surprisingly 
>patiently) to explain to an astronomer (very *bright*--but not involved 
>in XML) friend that even if she bound the default prefix of her 
>stylesheet to the namespace URI which was bound to the default prefix 
>of her incoming document (the XHTML namespace), "/html/body/p" still 
>wasn't going to match anything.  She had to "redundantly" bind to "h" 
>and use "/h:html/h:body/h:p" (in the end, she didn't do it that way ... 
>she preprocessed the incoming XHTML with a quick script that removed 
>the namespace declaration, so she could write XPath that made sense to 
>her ... and that was largely because my explanation devolved into chaos 
>when she wanted to match on "@class" attribtues (no, not @h:class ... 
>well, because attributes don't work like that ... no, don't take out 
>the "h" binding! ... wait, what are you doing? ... oh .... fine, just 
>strip the namespace decl and do it that way, then)).

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"
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?
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

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