Subject: Re: [xsl] XPath and noname namespace From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 14 Jul 2008 11:03:34 -0400 |
I have found workaround but I wonder why it must be done in that way.. Is it some kind of bug in XPath?
I have simple document:<svg xmlns="http://www.w3.org/2000/svg"> <a>aadsf</a> </svg>
And now "//a" doesn't find a node.. I must use //*[local-name() = 'a'],
xmlns:s="http://www.w3.org/2000/svg" ... select="//s:a"
but funny thing is that //*[name() = 'a'] works as well.. Why is that?
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XPath and noname namespace, Adam Komisarek | Thread | Re: [xsl] XPath and noname namespac, George Cristian Bina |
[xsl] Content negotiation in XSLT, Richard Light | Date | Re: [xsl] XPath and noname namespac, George Cristian Bina |
Month |