org.apache.xml.security.transforms.implementations
Class FuncHereContext

java.lang.Object
  extended by XPathContext
      extended by org.apache.xml.security.transforms.implementations.FuncHereContext

public class FuncHereContext
extends XPathContext

FuncHereContext extends 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 Text, Attributes and nodes. The correct node must be supplied to the constructor of 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
 

Author:
$Author: raul $
See Also:
FuncHere, XPathFuncHereAPI, XML Signature - The here() function

Constructor Summary
FuncHereContext(org.w3c.dom.Node owner)
          Constructor FuncHereContext
FuncHereContext(org.w3c.dom.Node owner, CachedXPathAPI previouslyUsed)
          Constructor FuncHereContext
FuncHereContext(org.w3c.dom.Node owner, DTMManager dtmManager)
          Constructor FuncHereContext
FuncHereContext(org.w3c.dom.Node owner, XPathContext xpathContext)
          Constructor FuncHereContext
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuncHereContext

public FuncHereContext(org.w3c.dom.Node owner)
Constructor FuncHereContext

Parameters:
owner -

FuncHereContext

public FuncHereContext(org.w3c.dom.Node owner,
                       XPathContext xpathContext)
Constructor FuncHereContext

Parameters:
owner -
xpathContext -

FuncHereContext

public FuncHereContext(org.w3c.dom.Node owner,
                       CachedXPathAPI previouslyUsed)
Constructor FuncHereContext

Parameters:
owner -
previouslyUsed -

FuncHereContext

public FuncHereContext(org.w3c.dom.Node owner,
                       DTMManager dtmManager)
Constructor FuncHereContext

Parameters:
owner -
dtmManager -