Bug: XPath 1.0 Results not linked to document 6.2

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Ormek
Posts: 10
Joined: Mon Sep 05, 2005 12:50 pm

Bug: XPath 1.0 Results not linked to document 6.2

Post by Ormek »

Hi,

with the upgrade to 6.2 the xpath 1.0 results in eclipse are no longer linked to the document. If I query for example for //ki:element I get a list of matching elements in the XPath result window, but if I (double) click on a single result the cursor in the document is not moved.
If I enter the same expression in the query window, but claim that to be an Xpath 2.0 expression, I get the same results (hopefully) and can select them to move the matching element.

This looks like a bug with an easy workaround to me.
Best wishes,
Oliver
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Oliver,

The XPath 1.0 execution is performed with Xalan. In your case I think an older version of Xalan is used because that was shiped with the Java distribution. The solution is to place the latest Xalan 2.7.0 in the endorsed folder for the JVM you use to run Eclipse.
For more information look also at
http://xml.apache.org/xalan-j/faq.html#faq-N100D6

Best Regards,
George
Ormek
Posts: 10
Joined: Mon Sep 05, 2005 12:50 pm

Post by Ormek »

Thanks. It works perfectly now.
Post Reply