{@link FuncHereContext} extends {@link XPathContext} for supplying context
for the here() function. The here() function needs to know
where in an XML instance the XPath text string appeared. This can be
in {@link org.w3c.dom.Text}, {@link org.w3c.dom.Attr}ibutes and {@ProcessingInstrinction} nodes. The
correct node must be supplied to the constructor of {@link FuncHereContext}.
The supplied Node MUST contain the XPath which is to be executed.
From: Scott_Boag\@lotus.com
To: Christian Geuer-Pollmann
CC: xalan-dev@xml.apache.org
Subject: Re: Cleanup of XPathContext & definition of XSLTContext
Date: Tue, 21 Aug 2001 18:36:24 -0400
> My point is to say to get this baby to run, the XPath must have a
> possibility to retrieve the information where itself occured in a
> document.
It sounds to me like you have to derive an XMLSigContext from the
XPathContext?
> and supplied the Node which contains the xpath string as "owner". Question:
> Is this the correct use of the owner object? It works, but I don't know
> whether this is correct from the xalan-philosophy...
Philosophically it's fine. The owner is the TransformerImpl if XPath is
running under XSLT. If it is not running under XSLT, it can be whatever
you want.
-scott
|