org.apache.xalan.templates
public class ElemForEach extends ElemTemplateElement implements ExpressionOwner
Field Summary | |
---|---|
boolean | m_doc_cache_off
This is set by an "xalan-doc-cache-off" pi, or the old "xalan:doc-cache-off" pi.
|
Constructor Summary | |
---|---|
ElemForEach()
Construct a element representing xsl:for-each. |
Method Summary | |
---|---|
ElemTemplateElement | appendChild(ElemTemplateElement newChild)
Add a child to the child list.
|
void | callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
Call the children visitors. |
void | compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void | endCompose(StylesheetRoot sroot)
This after the template's children have been composed. |
void | execute(TransformerImpl transformer)
Execute the xsl:for-each transformation
|
Expression | getExpression() |
String | getNodeName()
Return the node name.
|
Expression | getSelect()
Get the "select" attribute.
|
ElemSort | getSortElem(int i)
Get a xsl:sort element associated with this element.
|
int | getSortElemCount()
Get the count xsl:sort elements associated with this element. |
int | getXSLToken()
Get an int constant identifying the type of element. |
void | setExpression(Expression exp) |
void | setSelect(XPath xpath)
Set the "select" attribute.
|
void | setSortElem(ElemSort sortElem)
Set a xsl:sort element associated with this element.
|
DTMIterator | sortNodes(XPathContext xctxt, Vector keys, DTMIterator sourceNodes)
Sort given nodes
|
void | transformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child.
|
Parameters: newChild Child to add to child list
Returns: Child just added to child list
Parameters: visitor The visitor whose appropriate method will be called.
Throws: TransformerException
Parameters: transformer non-null reference to the the current transform-time state.
Throws: TransformerException
See Also: getExpression
Returns: The element's name
Returns: The XPath expression for the "select" attribute.
Parameters: i Index of xsl:sort element to get
Returns: xsl:sort element at given index
Returns: The number of xsl:sort elements.
Returns: The token ID for this element
See Also: setExpression
Parameters: xpath The XPath expression for the "select" attribute.
Parameters: sortElem xsl:sort element to set
Parameters: xctxt The XPath runtime state for the sort. keys Vector of sort keyx sourceNodes Iterator of nodes to sort
Returns: iterator of sorted nodes
Throws: TransformerException
Parameters: transformer non-null reference to the the current transform-time state.
Throws: TransformerException Thrown in a variety of circumstances.
UNKNOWN: advanced