Re: XPath expression evaluation question
Brought to you by:
ovidiu
From: <aq...@da...> - 2002-07-24 14:10:07
|
Tony, This sounds extremly cool... I have been dreaming about this kind of feature... Please keep us updated. Anup ---------Included Message---------- >Date: Sun, 21 Jul 2002 10:50:01 -0700 >From: "Ovidiu Predescu" <ov...@ap...> >Reply-To: "Ovidiu Predescu" <ov...@ap...> >To: <A.M...@sa...>, <xsl...@li...> >Subject: Re: XPath expression evaluation question > >Tony, > >On 7/21/02 7:54 AM, "A.M...@sa..." <A.M...@sa...> >wrote: > >> >> I have been doing some development on xslt-process, and am about to start >work >> on adding XPath expression evaluation to the debugger using Saxon. Given the >> Saxon code, I hope the actual evaluation may not be too complex. What is far >> from clear to me is the best way of displaying the output of an evaluation >to >> the user. If the result is a simple value, it will be easy. However, if the >> result is a node set we need a good way of identifying the nodes within the >> source tree which have been selected. Possibilities that have occurred to me >> (I don't know how easy they would be to program, though) are >> 1. Use the speedbar in some way to display a tree which can be expanded and >> contracted >> 2. Use the source code in the buffer, and highlight the nodes somehow - >colour >> would be the obvious choice >> 3. Number the nodes hierarchically and display a list of the numbers of the >> selected nodes >> >> Does anyone have any other ideas, or views on a suitable way of displaying >the >> evaluated expression. > >I think a combination of 1) and 2) would be an interesting option. The >result would appear in the speedbar as a tree. When the user clicks on a >particular node in the tree, the corresponding elements in the source >document can be displayed, perhaps in a different color. > >One problem with this approach is that you'll need to write code to analyze >the source XML and annotate it with Xpath information, so that selecting >elements could work fast. I believe this is where the bulk of the code for >this approach would be. > >Regards, >Ovidiu > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Xslt-process-users mailing list >Xsl...@li... >https://lists.sourceforge.net/lists/listinfo/xslt-process-users > ---------End of Included Message---------- _____________________________________________________________ |