xpath result selects wrong node in outline

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Roger
Posts: 26
Joined: Tue Apr 05, 2005 11:29 pm

xpath result selects wrong node in outline

Post by Roger »

I run an xpath query that shows the result path in the result pane. When I click on the result path, the correct element in the editing pane is select. However, the root element is selected in the outline pane which is not the element selected in the editing pane. WHen I click on the selected element in the editing pane, the correct corresponding element is selected in the outline pane.

Again, this is the Saxon 8.3 drop. Am I wasting my time with that build??

Roger Kovack

PS: One of my stylesheets blew up Stylus. They got the file and admitted the failure but haven't fixed it yet. Oxygen works right. That stylesheet also blew up Saxon 8.2 but runs in Saxon 7.8. Way to go, oxygen! I never attempt to actually execute the stylesheets in any editor.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Roger,

The results mark some text in the editor. The outliner (depending on its settings) selects the element that contains the caret. The selection in the editor is made from right to left (end to start) to be able to avoid scrolling the editor horizontally when there is a long line, thus the caret is placed outside of the curent element and the outliner selects its parent.
We discussed this recently trying to find a better solution but without succes. We will think more on this and hopefully we will come up with something :).
The Saxon 8.3 drop was made available (as the one for Saxon 8.4) for letting Saxon users use the latest version of Saxon. If you do not need the latest version of Saxon you can use the 5.1 release.

Best Regards,
George
Post Reply