TraceListener seems to be related to XSLT. I'm using the XPath
implementation directly.

Some background for what I'm trying to do:
I'm implementing W3C XForms. It contains calculations defined in XPath. But
in order to decide on calculation order, I will have to see which nodes a
particular XPath expression reads while executing.

I think this requirement will be present in any declarative calculation
system, which uses XPath expressions.

- Mikko Honkala - http://www.x-smiles.org/


> -----Original Message-----
> From: Gary L Peskin [mailto:[EMAIL PROTECTED]]
> Sent: 7. elokuuta 2001 19:07
> To: [EMAIL PROTECTED]
> Subject: Re: Xalan-J: list of referenced DOM nodes for an XPath
> expression?
>
>
> 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/
>

Reply via email to