|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.process.ApplyTemplatesTemplate
A template that processes either the nodes selected by a pattern or the
immediate children of the current node. This template corresponds to the
xsl:apply-templates
element.
Constructor Summary | |
ApplyTemplatesTemplate(Expression select,
Mode mode,
SortCriteria sortCriteria,
Template[] params,
Node nsContext)
Constructs a new ApplyTemplatesTemplate for the specified
select pattern, mode, and sort criteria. |
|
ApplyTemplatesTemplate(Mode mode,
Node nsContext)
Constructs a new ApplyTemplatesTemplate for the specified
mode. |
Method Summary | |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
Mode |
getMode()
Returns the mode in which this template processes the selected nodes. |
Node |
getNamespaceContext()
Return the node that is the namespace context for this template |
Expression |
getSelect()
Returns this template's select expression |
SortCriteria |
getSortCriteria()
Returns this template's sort criteria. |
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. |
void |
setMode(Mode mode)
Set the mode to apply templates with This should only be used by BuiltInTemplateRule |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ApplyTemplatesTemplate(Mode mode, Node nsContext)
ApplyTemplatesTemplate
for the specified
mode. Equivalent to
ApplyTemplatesTemplate(null, mode, null)
.
mode
- the mode in which the template processes the
selected nodesnsContext
- The namespace context node from the stylesheetpublic ApplyTemplatesTemplate(Expression select, Mode mode, SortCriteria sortCriteria, Template[] params, Node nsContext)
ApplyTemplatesTemplate
for the specified
select pattern, mode, and sort criteria.
select
- the template's select pattern, or null
if immediate children including character data are
to be processedmode
- the mode in which the template processes the
selected nodessortCriteria
- the template's sort criteria, or null
if no sorting is to be performedparams
- the xsl:with-param templates, or null if no paramsnsContext
- The namespace context node from the stylesheetMethod Detail |
public Expression getSelect()
null
if
immediate children including character data are to be processedpublic Mode getMode()
public SortCriteria getSortCriteria()
null
if no
sorting is to be performedpublic void setMode(Mode mode)
mode
- The mode to usepublic void instantiate(ProcessingEnv env, Node currentNode, ResultHandler result) throws XSLException
For an ApplyTemplatesTemplate
, this method processes the
nodes selected by this template's pattern. If this template has no
pattern, it processes the current node's children.
instantiate
in interface Template
env
- the current processing environmentcurrentNode
- the current source noderesult
- the handler to which results are sent
XSLException
- if a fatal error occurs during instantiationpublic Node getNamespaceContext()
getNamespaceContext
in interface Template
public void dump(PrintWriter out, int indent)
dump
in interface Template
out
- 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 |