org.apache.xalan.templates
Class ElemAttribute

java.lang.Object
  |
  +--org.apache.xml.utils.UnImplNode
        |
        +--org.apache.xalan.templates.ElemTemplateElement
              |
              +--org.apache.xalan.templates.ElemAttribute

public class ElemAttribute
extends ElemTemplateElement

**For advanced use only** 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, Serialized Form

Field Summary
 AVT m_name_avt
          The local name which should be used.
 AVT m_namespace_avt
          The namespace which should be used.
 
Constructor Summary
ElemAttribute()
           
 
Method Summary
 Node appendChild(Node newChild)
          Add a child to the child list.
 void execute(TransformerImpl transformer, Node sourceNode, QName mode)
          Create an attribute in the result tree.
 AVT getName()
          Get the "name" attribute.
 AVT getNamespace()
          Get the "namespace" attribute.
 java.lang.String getNodeName()
          Return the node name.
 int getXSLToken()
          Get an int constant identifying the type of element.
 void setName(AVT name)
          Set the "name" attribute.
 void setNamespace(AVT name)
          Set the "namespace" attribute.
 
Methods inherited from class org.apache.xalan.templates.ElemTemplateElement
canStripWhiteSpace, compareTo, compose, containsExcludeResultPrefix, error, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getFirstChild, getFirstChildElem, getLastChild, getLength, getLineNumber, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getParentElem, getParentNode, getPrefixes, getPreviousSibling, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXmlSpace, hasChildNodes, isCompiledTemplate, item, recompose, removeChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setLocaterInfo, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace
 
Methods inherited from class org.apache.xml.utils.UnImplNode
appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, error, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getLocalName, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSpecified, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertBefore, insertData, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceData, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setNodeValue, setPrefix, setValue, splitText, substringData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_name_avt

public AVT m_name_avt
The local name which should be used.

m_namespace_avt

public AVT m_namespace_avt
The namespace which should be used.
Constructor Detail

ElemAttribute

public ElemAttribute()
Method Detail

setName

public void setName(AVT name)
Set the "name" attribute.
Parameters:
name - name attribute to set

getName

public AVT getName()
Get the "name" attribute.
Returns:
the "name" attribute.

setNamespace

public void setNamespace(AVT name)
Set the "namespace" attribute.
Parameters:
name - Namspace attribute to set

getNamespace

public AVT getNamespace()
Get the "namespace" attribute.
Returns:
the "namespace" attribute.

getXSLToken

public int getXSLToken()
Get an int constant identifying the type of element.
Returns:
The token ID for this element
Overrides:
getXSLToken in class ElemTemplateElement
See Also:
Constants

getNodeName

public java.lang.String getNodeName()
Return the node name.
Returns:
The element name
Overrides:
getNodeName in class ElemTemplateElement

execute

public void execute(TransformerImpl transformer,
                    Node sourceNode,
                    QName mode)
             throws TransformerException
Create an attribute in the result tree.
Parameters:
transformer - non-null reference to the the current transform-time state.
sourceNode - non-null reference to the current source node.
mode - reference, which may be null, to the current mode.
Throws:
TransformerException -  
Overrides:
execute in class ElemTemplateElement
See Also:
creating-attributes in XSLT Specification

appendChild

public Node appendChild(Node newChild)
                 throws DOMException
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 -  
Overrides:
appendChild in class ElemTemplateElement


Copyright � 2000 Apache XML Project. All Rights Reserved.