com.novell.xsl.process
Class ApplyImportsTemplate

java.lang.Object
  extended bycom.novell.xsl.process.ApplyImportsTemplate
All Implemented Interfaces:
Template

public class ApplyImportsTemplate
extends Object
implements Template

A template representing an xsl:apply-imports element.


Constructor Summary
ApplyImportsTemplate(Node nsContext)
          Constructs an OtherwiseTemplate containing the specified templates.
 
Method Summary
 void dump(PrintWriter out, int indent)
          Dumps this object to the specified output stream.
 Node getNamespaceContext()
          Return the node that is the namespace context for this template
 void instantiate(ProcessingEnv env, Node currentNode, ResultHandler result)
          Instantiates this template for the specified current node and sends the result to the specified result handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyImportsTemplate

public ApplyImportsTemplate(Node nsContext)
Constructs an OtherwiseTemplate containing the specified templates.

Parameters:
nsContext - The node in the style sheet from which this template comes
Method Detail

instantiate

public void instantiate(ProcessingEnv env,
                        Node currentNode,
                        ResultHandler result)
                 throws XSLException
Instantiates this template for the specified current node and sends the result to the specified result handler.

For an ApplyImportsTemplate, this method applys imported rules to the current node.

Specified by:
instantiate in interface Template
Parameters:
env - the current processing environment
currentNode - the current source node
result - the handler to which results are sent
Throws:
XSLException - if a fatal error occurs during instantiation

dump

public void dump(PrintWriter out,
                 int indent)
Dumps this object to the specified output stream.

Specified by:
dump in interface Template
Parameters:
out - the output stream to write to
indent - number of tabs to indent

getNamespaceContext

public Node getNamespaceContext()
Return the node that is the namespace context for this template

Specified by:
getNamespaceContext in interface Template
Returns:
The namespace context node.