org.apache.xalan.templates
Class ElemElement
java.lang.Object
|
+--org.apache.xml.utils.UnImplNode
|
+--org.apache.xalan.templates.ElemTemplateElement
|
+--org.apache.xalan.templates.ElemUse
|
+--org.apache.xalan.templates.ElemElement
- public class ElemElement
- extends ElemUse
**For advanced use only**
Implement xsl:element
- See Also:
- XXX in XSLT Specification, Serialized Form
Methods inherited from class org.apache.xalan.templates.ElemTemplateElement |
appendChild,
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 |
ElemElement
public ElemElement()
setName
public void setName(AVT v)
- Set the "name" attribute.
The name attribute is interpreted as an attribute value template.
It is an error if the string that results from instantiating the
attribute value template is not a QName.
- Parameters:
v
- Name attribute to set for this element
getName
public AVT getName()
- Get the "name" attribute.
The name attribute is interpreted as an attribute value template.
It is an error if the string that results from instantiating the
attribute value template is not a QName.
- Returns:
- Name attribute for this element
setNamespace
public void setNamespace(AVT v)
- Set the "namespace" attribute.
If the namespace attribute is present, then it also is interpreted
as an attribute value template. The string that results from
instantiating the attribute value template should be a URI reference.
It is not an error if the string is not a syntactically legal URI reference.
- Parameters:
v
- NameSpace attribute to set for this element
getNamespace
public AVT getNamespace()
- Get the "namespace" attribute.
If the namespace attribute is present, then it also is interpreted
as an attribute value template. The string that results from
instantiating the attribute value template should be a URI reference.
It is not an error if the string is not a syntactically legal URI reference.
- Returns:
- Namespace attribute for this element
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:
- This element's name
- Overrides:
- getNodeName in class ElemTemplateElement
execute
public void execute(TransformerImpl transformer,
Node sourceNode,
QName mode)
throws TransformerException
- Create an element in the result tree.
The xsl:element element allows an element to be created with a
computed name. The expanded-name of the element to be created
is specified by a required name attribute and an optional namespace
attribute. The content of the xsl:element element is a template
for the attributes and children of the created element.
- 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 ElemUse
Copyright � 2000 Apache XML Project. All Rights Reserved.