|
||||||||||
| 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.ForEachTemplate
A template that is instantiated for each node selected by a pattern. This
template corresponds to the xsl:for-each element.
| Constructor Summary | |
ForEachTemplate(Expression select,
Template[] templates,
SortCriteria sortCriteria,
Node nsContext)
Constructs a ForEachTemplate for the specified select
pattern, templates, and sort criteria. |
|
| Method Summary | |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
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. |
| 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 ForEachTemplate(Expression select,
Template[] templates,
SortCriteria sortCriteria,
Node nsContext)
ForEachTemplate for the specified select
pattern, templates, and sort criteria.
select - the select expression to be usedtemplates - the contained templatessortCriteria - the template's sort criteria, or null
if no sorting is to be performednsContext - The node in the style sheet from which this template comes| Method Detail |
public Expression getSelect()
public SortCriteria getSortCriteria()
null if no
sorting is to be performed
public void instantiate(ProcessingEnv env,
Node currentNode,
ResultHandler result)
throws XSLException
For a ForEachTemplate, this method instantiates this
template's contained templates for each source node selected by this
template's pattern.
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 | |||||||||