I'm not sure what you're getting at here, Mikko, but have a look at the
TraceListener interface. It gets fired whenever a node is selected.
Gary
Mikko Honkala wrote:
>
> Hi,
>
> is there anything in the current XPath implementation in Xalan-J that would
> help me to get a list of DOM nodes that an arbitrary XPath expression
> references?
>
> E.g. for xml data:
>
> <root>
> <child>30</child>
> <child>40</child>
> <child value="50"/>
> </root>
>
> and XPath : '/root/child[1] * /root/child[3]/@value'
>
> This would return 1500. Is there a way to get a list of nodes that were read
> during the calculation of this XPath expression (the first 'child' element
> and the third 'child' element's value attribute node)?
>
> I am pretty sure that there is no current interface for this, but I would be
> willing to add this feature to the current XPath implementation, if somebody
> helps out a bit.
>
> Thanks,
>
> - Mikko Honkala - http://www.x-smiles.org/