org.apache.xalan.templates

Class ElemCopyOf

public class ElemCopyOf extends ElemTemplateElement

Implement xsl:copy-of.
 
 
 

See Also: copy-of in XSLT Specification

UNKNOWN: advanced

Field Summary
XPathm_selectExpression
The required select attribute contains an expression.
Method Summary
ElemTemplateElementappendChild(ElemTemplateElement newChild)
Add a child to the child list.
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)
The xsl:copy-of element can be used to insert a result tree fragment into the result tree, without first converting it to a string as xsl:value-of does (see [7.6.1 Generating Text with xsl:value-of]).
StringgetNodeName()
Return the node name.
XPathgetSelect()
Get the "select" attribute.
intgetXSLToken()
Get an int constant identifying the type of element.
voidsetSelect(XPath expr)
Set the "select" attribute.

Field Detail

m_selectExpression

public XPath m_selectExpression
The required select attribute contains an expression.

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 child list

Returns: Child just added to child list

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)
The xsl:copy-of element can be used to insert a result tree fragment into the result tree, without first converting it to a string as xsl:value-of does (see [7.6.1 Generating Text with xsl:value-of]).

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

Throws: TransformerException

getNodeName

public String getNodeName()
Return the node name.

Returns: The element's name

getSelect

public XPath getSelect()
Get the "select" attribute. The required select attribute contains an expression.

Returns: Expression for select attribute

getXSLToken

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

Returns: The token ID for this element

See Also:

setSelect

public void setSelect(XPath expr)
Set the "select" attribute. The required select attribute contains an expression.

Parameters: expr Expression for select attribute

Copyright © 2005 Apache XML Project. All Rights Reserved.