appendChild
public ElemTemplateElement appendChild(ElemTemplateElement newChild)
Add a child to the child list.
<!ELEMENT xsl:apply-templates (xsl:sort|xsl:with-param)*>
<!ATTLIST xsl:apply-templates
select %expr; "node()"
mode %qname; #IMPLIED
>
- appendChild in interface ElemTemplateElement
newChild
- Child to add to child list
- Child just added to child list
callChildVisitors
public void callChildVisitors(XSLTVisitor visitor,
boolean callAttributes)
Call the children visitors.
visitor
- The visitor whose appropriate method will be called.
compose
public void compose(StylesheetRoot sroot)
throws TransformerException
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.
NEEDSDOC @param sroot
- compose in interface ElemTemplateElement
execute
public void execute(TransformerImpl transformer)
throws TransformerException
Execute the xsl:for-each transformation
- execute in interface ElemTemplateElement
transformer
- non-null reference to the the current transform-time state.
getSelect
public Expression getSelect()
Get the "select" attribute.
- The XPath expression for the "select" attribute.
getSortElem
public ElemSort getSortElem(int i)
Get a xsl:sort element associated with this element.
i
- Index of xsl:sort element to get
- xsl:sort element at given index
getSortElemCount
public int getSortElemCount()
Get the count xsl:sort elements associated with this element.
- The number of xsl:sort elements.
getXSLToken
public int getXSLToken()
Get an int constant identifying the type of element.
- getXSLToken in interface ElemTemplateElement
- The token ID for this element
setSelect
public void setSelect(XPath xpath)
Set the "select" attribute.
xpath
- The XPath expression for the "select" attribute.
setSortElem
public void setSortElem(ElemSort sortElem)
Set a xsl:sort element associated with this element.
sortElem
- xsl:sort element to set
sortNodes
public DTMIterator sortNodes(XPathContext xctxt,
Vector keys,
DTMIterator sourceNodes)
throws TransformerException
Sort given nodes
xctxt
- The XPath runtime state for the sort.keys
- Vector of sort keyxsourceNodes
- Iterator of nodes to sort
transformSelectedNodes
public void transformSelectedNodes(TransformerImpl transformer)
throws TransformerException
Perform a query if needed, and call transformNode for each child.
transformer
- non-null reference to the the current transform-time state.