Hi Joseph,

my problem was that when I run:

XPathApi.eval(arbitrary_xpath,root),

I can only get the result of the XPath. I would need the nodes which are
part of the calculation in addition to the result...

So maybe I can get them thru the XPath object after init and eval?

XPath xpath = new XPath(str, null, prefixResolver, XPath.SELECT, null);

I can access the expression with xpath.getExpression(),
but how can I traverse into the expression if it contains other expressions?

Thanks,

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


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 7. elokuuta 2001 16:33
> To: [EMAIL PROTECTED]
> Subject: Re: Xalan-J: list of referenced DOM nodes for an XPath
> expression?
>
>
>
> This  might want to be posted as a FAQ...
>
> The DTM APIs include a getNode() operation, which returns a DOM node
> corresponding to a DTM node. If your input document was supplied as a SAX
> stream, we construct a "proxy" object which references the DTM
> information.
> If your input document was passed in as a DOM tree, we return the actual
> DOM node at which the DTM node starts. (One DTM node may span several DOM
> nodes in some cases, most notably if there are several adjacent
> Text/CDATASection nodes in the source DOM. It's the user's responsibility
> to understand this and retrieve the additional nodes from the DOM if
> necessary.)
>

Reply via email to