Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » XPath View...skip namespaces(Not working?)
XPath View...skip namespaces [message #719109] Fri, 26 August 2011 01:44 Go to next message
MarcoGT  is currently offline MarcoGT
Messages: 77
Registered: May 2011
Member
Hi all,

I am using the default XPath View inside WTP.
In my XML file I have some namespaces.

If I try to execute:

//myNameSpace:Book


it works fine

but if I try to execute:

//*:Book


I get a warning saying "the namespace prefix must resolve a valid namespace" but the second one is a valid XPath expression...why does not work?

Thanks
Marco
Re: XPath View...skip namespaces [message #720909 is a reply to message #719109] Wed, 31 August 2011 09:30 Go to previous messageGo to next message
David Carver is currently offline David Carver
Messages: 174
Registered: July 2009
Senior Member
MarcoGT wrote on Fri, 26 August 2011 01:44
Hi all,

I am using the default XPath View inside WTP.
In my XML file I have some namespaces.

If I try to execute:

//myNameSpace:Book


it works fine

but if I try to execute:

//*:Book


I get a warning saying "the namespace prefix must resolve a valid namespace" but the second one is a valid XPath expression...why does not work?



Are you using the XPath 1.0 processor or the XPath 2.0 processor? You can select the processor from the Views menu.

It sounds like it could be a bug, though in our implementation.

Re: XPath View...skip namespaces [message #721550 is a reply to message #720909] Fri, 02 September 2011 01:51 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT
Messages: 77
Registered: May 2011
Member
I am using XPath 2.0 engine.
Re: XPath View...skip namespaces [message #730205 is a reply to message #721550] Tue, 27 September 2011 17:37 Go to previous message
David Carver is currently offline David Carver
Messages: 174
Registered: July 2009
Senior Member
There was a bug with the 2.0 preferences that wasn't setting the parameters right. Can you try it with the 3.2.1 maintenance release of WTP. This should be fixed now.
Previous Topic:StructuredTextEditor validation
Next Topic:Dependent jars not published to Tomcat
Goto Forum:
  


Current Time: Tue Jul 22 07:31:24 EDT 2014

Powered by FUDForum. Page generated in 0.01659 seconds