org.apache.xalan.templates

Class ElemPI

public class ElemPI extends ElemTemplateElement

Implement xsl:processing-instruction.
 
 
 

See Also: section-Creating-Processing-Instructions in XSLT Specification

UNKNOWN: advanced

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)
Create a processing instruction in the result tree.
AVTgetName()
Get the "name" attribute.
StringgetNodeName()
Return the node name.
intgetXSLToken()
Get an int constant identifying the type of element.
voidsetName(AVT v)
Set the "name" attribute.

Method Detail

appendChild

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

Parameters: newChild Child to add to child list

Returns: The child just added to the child list

Throws: DOMException

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)
Create a processing instruction in the result tree. The content of the xsl:processing-instruction element is a template for the string-value of the processing instruction node.

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

Throws: TransformerException

See Also: section-Creating-Processing-Instructions in XSLT Specification

getName

public AVT getName()
Get the "name" attribute. DJD

Returns: The value of the "name" attribute

getNodeName

public String getNodeName()
Return the node name.

Returns: The element's name

getXSLToken

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

Returns: The token ID for the element

See Also:

setName

public void setName(AVT v)
Set the "name" attribute. DJD

Parameters: v Value for the name attribute

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