org.apache.xalan.templates

Class ElemApplyTemplates

public class ElemApplyTemplates extends ElemCallTemplate

Implement xsl:apply-templates.
 &!ELEMENT xsl:apply-templates (xsl:sort|xsl:with-param)*>
 &!ATTLIST xsl:apply-templates
   select %expr; "node()"
   mode %qname; #IMPLIED
 &
 

See Also: section-Applying-Template-Rules in XSLT Specification

UNKNOWN: advanced

Method Summary
voidcompose(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.
voidexecute(TransformerImpl transformer)
Apply the context node to the matching templates.
QNamegetMode()
Get the mode attribute for this element.
StringgetNodeName()
Return the node name.
intgetXSLToken()
Get an int constant identifying the type of element.
voidsetIsDefaultTemplate(boolean b)
Set if this belongs to a default template, in which case it will act different with regard to processing modes.
voidsetMode(QName mode)
Set the mode attribute for this element.
voidtransformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child.

Method Detail

compose

public 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.

execute

public void execute(TransformerImpl transformer)
Apply the context node to the matching templates.

Parameters: transformer non-null reference to the the current transform-time state.

Throws: TransformerException

See Also: section-Applying-Template-Rules in XSLT Specification

getMode

public QName getMode()
Get the mode attribute for this element.

Returns: The mode attribute for this element

getNodeName

public String getNodeName()
Return the node name.

Returns: Element name

getXSLToken

public int getXSLToken()
Get an int constant identifying the type of element.

Returns: Token ID for this element types

See Also:

setIsDefaultTemplate

public void setIsDefaultTemplate(boolean b)
Set if this belongs to a default template, in which case it will act different with regard to processing modes.

Parameters: b boolean value to set.

See Also: built-in-rule in XSLT Specification

setMode

public void setMode(QName mode)
Set the mode attribute for this element.

Parameters: mode reference, which may be null, to the current mode.

transformSelectedNodes

public void transformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child.

Parameters: transformer non-null reference to the the current transform-time state.

Throws: TransformerException Thrown in a variety of circumstances.

UNKNOWN: advanced

Copyright B) 2005 Apache XML Project. All Rights Reserved.