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

Re: XPath and noname namespace

Subject: Re: XPath and noname namespace
From: George Cristian Bina <george@xxxxxxxxxxxxx>
Date: Mon, 14 Jul 2008 18:08:14 +0300
Re:  XPath and noname namespace
Because the local name is the same as the name in your example for the a element.
If you will have
<s:svg xmlns:s="http://www.w3.org/2000/svg">
<s:a>aadsf</s:a>
</s:svg>
than you will get different results.


Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Adam Komisarek wrote:
Hello!

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'], but funny thing is that //*[name() = 'a'] works as well.. Why is
that?

Thanks,
Adam

Current Thread

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