org.apache.xalan.templates

Class ElemCallTemplate

public class ElemCallTemplate extends ElemForEach

Implement xsl:call-template.
 &!ELEMENT xsl:call-template (xsl:with-param)*>
 &!ATTLIST xsl:call-template
   name %qname; #REQUIRED
 &
 

See Also: named-templates in XSLT Specification

UNKNOWN: advanced

Field Summary
QNamem_templateName
An xsl:call-template element invokes a template by name; it has a required name attribute that identifies the template to be invoked.
Method Summary
ElemTemplateElementappendChild(ElemTemplateElement newChild)
Add a child to the child list.
voidcallChildVisitors(XSLTVisitor visitor, boolean callAttrs)
Call the children visitors.
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.
voidendCompose(StylesheetRoot sroot)
This after the template's children have been composed.
voidexecute(TransformerImpl transformer)
Invoke a named template.
QNamegetName()
Get the "name" attribute.
StringgetNodeName()
Return the node name.
ElemWithParamgetParamElem(int i)
Get a xsl:param element associated with this element.
intgetParamElemCount()
Get the count xsl:param elements associated with this element.
intgetXSLToken()
Get an int constant identifying the type of element.
voidsetName(QName name)
Set the "name" attribute.
voidsetParamElem(ElemWithParam ParamElem)
Set a xsl:param element associated with this element.

Field Detail

m_templateName

public QName m_templateName
An xsl:call-template element invokes a template by name; it has a required name attribute that identifies the template to be invoked.

Serial:

Method Detail

appendChild

public ElemTemplateElement appendChild(ElemTemplateElement newChild)
Add a child to the child list.

Parameters: newChild Child to add to this node's children list

Returns: The child that was just added the children list

Throws: DOMException

callChildVisitors

public void callChildVisitors(XSLTVisitor visitor, boolean callAttrs)
Call the children visitors.

Parameters: visitor The visitor whose appropriate method will be called.

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.

endCompose

public void endCompose(StylesheetRoot sroot)
This after the template's children have been composed.

execute

public void execute(TransformerImpl transformer)
Invoke a named template.

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

Throws: TransformerException

See Also: named-templates in XSLT Specification

getName

public QName getName()
Get the "name" attribute. An xsl:call-template element invokes a template by name; it has a required name attribute that identifies the template to be invoked.

Returns: Name attribute of this element

getNodeName

public String getNodeName()
Return the node name.

Returns: The name of this element

getParamElem

public ElemWithParam getParamElem(int i)
Get a xsl:param element associated with this element.

Parameters: i Index of element to find

Returns: xsl:param element at given index

getParamElemCount

public int getParamElemCount()
Get the count xsl:param elements associated with this element.

Returns: The number of xsl:param elements.

getXSLToken

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

Returns: The token ID for this element

See Also:

setName

public void setName(QName name)
Set the "name" attribute. An xsl:call-template element invokes a template by name; it has a required name attribute that identifies the template to be invoked.

Parameters: name Name attribute to set

setParamElem

public void setParamElem(ElemWithParam ParamElem)
Set a xsl:param element associated with this element.

Parameters: ParamElem xsl:param element to set.

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