Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XPath View...skip namespaces(Not working?)
XPath View...skip namespaces [message #719109] Fri, 26 August 2011 05:44 Go to next message
MarcoGT  is currently offline MarcoGT Friend
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 13:30 Go to previous messageGo to next message
David Carver is currently offline David CarverFriend
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 05:51 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT Friend
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 21:37 Go to previous message
David Carver is currently offline David CarverFriend
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: Fri Mar 29 11:27:51 GMT 2024

Powered by FUDForum. Page generated in 0.05939 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top