com.novell.xsl.process
Class CallTemplate
java.lang.Object
com.novell.xsl.process.TemplateCollection
com.novell.xsl.process.CallTemplate
- All Implemented Interfaces:
- Template
- public class CallTemplate
- extends TemplateCollection
Constructor Summary |
CallTemplate(ExpandedQName templateName,
Template[] templates,
Node nsContext)
Constructs a CallTemplate that invokes the named template
and contains the specified templates. |
Method Summary |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
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 |
CallTemplate
public CallTemplate(ExpandedQName templateName,
Template[] templates,
Node nsContext)
- Constructs a
CallTemplate
that invokes the named template
and contains the specified templates.
- Parameters:
templateName
- the name of the template to be invokedtemplates
- the contained templatesnsContext
- The node in the style sheet from which this template comes
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.
- Parameters:
env
- the current processing environmentcurrentNode
- the current source noderesult
- 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
- Overrides:
dump
in class TemplateCollection
- Parameters:
out
- the output stream to write toindent
- number of tabs to indent