|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.process.TemplateCollection
com.novell.xsl.process.ElementTemplate
A template that creates a result element. This template corresponds to the
xsl:element element.
| Constructor Summary | |
ElementTemplate(Expression name,
Expression namespace,
Collection attributeSetNames,
Template[] templates,
Node nsContext)
Constructs an ElementTemplate that creates a result element
whose name is given by the specified expression, and whose attributes
and children are given by 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 com.novell.xsl.process.TemplateCollection |
getNamespaceContext, getTemplates, instantiateTemplates |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementTemplate(Expression name,
Expression namespace,
Collection attributeSetNames,
Template[] templates,
Node nsContext)
ElementTemplate that creates a result element
whose name is given by the specified expression, and whose attributes
and children are given by the specified templates.
name - the attribute value template that evaluates to the
element's namenamespace - the attribute value template that evaluates to the namespace
for the element name (may be null)attributeSetNames - The attribute sets to use when the template is instantiated (may be null).templates - the templates to be evaluated to get the element's
attributes and childrennsContext - The node in the style sheet from which this template comes| Method Detail |
public void instantiate(ProcessingEnv env,
Node currentNode,
ResultHandler result)
throws XSLException
For an ElementTemplate, this method adds an element to the
result tree. The element's attributes and children are obtained by
instantiating this template's contained templates.
env - the current processing environmentcurrentNode - the current source noderesult - the handler to which results are sent
XSLException - if a fatal error occurs during instantiation
public void dump(PrintWriter out,
int indent)
dump in interface Templatedump in class TemplateCollectionout - the output stream to write toindent - number of tabs to indent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||