How to specify namespace in xpath view [message #480298] |
Fri, 14 August 2009 15:59  |
Eclipse User |
|
|
|
I'm using the "XPath View", supposedly provided by "XPath Core" and "XPath UI", version 1.0.0.v200904240436.
My XML file, like zillions of other people, uses namespaces. I was able to get the XPath View to work using the "*[local-name()='...']" hack, but that's really annoying. Is there any way to specify a list of prefix/namespace pairs so that I can enter a more reasonable looking XPath expression? I didn't find any useful configuration in the XPath View or in my Preferences.
|
|
|
|
Re: How to specify namespace in xpath view [message #480406 is a reply to message #480312] |
Sun, 16 August 2009 18:04  |
Eclipse User |
|
|
|
David M. Karr wrote on Fri, 14 August 2009 18:22 | Never mind, I realized that any prefix/namespace pairs defined in the XML doc are in effect in the XPath expression.
|
That is correct. The XPath View will try and dynamically figure out the namespaces to use and their corresponding prefix. We plan on greatly enhancing the XPath view, to add XPath 2.0 support during the WTP 3.2 (xsl tools 1.1) development period. If you have any suggestions for enhancement to the view please open an enhancement request.
[Updated on: Sun, 16 August 2009 18:06] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03600 seconds