org.apache.xalan.templates

Class ElemAttribute

public class ElemAttribute extends ElemElement

Implement xsl:attribute.
 &!ELEMENT xsl:attribute %char-template;>
 &!ATTLIST xsl:attribute
   name %avt; #REQUIRED
   namespace %avt; #IMPLIED
   %space-att;
 &
 

See Also: creating-attributes in XSLT Specification

UNKNOWN: advanced

Method Summary
ElemTemplateElementappendChild(ElemTemplateElement newChild)
Add a child to the child list.
voidexecute(TransformerImpl transformer)
Create an attribute in the result tree.
StringgetNodeName()
Return the node name.
intgetXSLToken()
Get an int constant identifying the type of element.
voidsetName(AVT v)

Method Detail

appendChild

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

Parameters: newChild Child to append to the list of this node's children

Returns: The node we just appended to the children list

Throws: DOMException

execute

public void execute(TransformerImpl transformer)
Create an attribute in the result tree.

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

Throws: TransformerException

See Also: creating-attributes in XSLT Specification

getNodeName

public String getNodeName()
Return the node name.

Returns: The element name

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(AVT v)

See Also: setName

Copyright © 2005 Apache XML Project. All Rights Reserved.