Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xml.utils.UnImplNode
org.apache.xalan.templates.ElemTemplateElement
org.apache.xalan.templates.ElemUse
org.apache.xalan.templates.ElemCopy
public class ElemCopy
extends ElemUse
<!ELEMENT xsl:copy %template;> <!ATTLIST xsl:copy %space-att; use-attribute-sets %qnames; #IMPLIED >
copying in XSLT Specification
Nested Class Summary |
Fields inherited from interface org.w3c.dom.Node | |
ATTRIBUTE_NODE , CDATA_SECTION_NODE , COMMENT_NODE , DOCUMENT_FRAGMENT_NODE , DOCUMENT_NODE , DOCUMENT_TYPE_NODE , ELEMENT_NODE , ENTITY_NODE , ENTITY_REFERENCE_NODE , NOTATION_NODE , PROCESSING_INSTRUCTION_NODE , TEXT_NODE |
Method Summary | |
void |
|
String |
|
int |
|
Methods inherited from class org.apache.xalan.templates.ElemUse | |
applyAttrSets , execute , getUseAttributeSets , setUseAttributeSets , setUseAttributeSets |
public void execute(TransformerImpl transformer) throws TransformerException
The xsl:copy element provides an easy way of copying the current node. Executing this function creates a copy of the current node into the result tree. The namespace nodes of the current node are automatically copied as well, but the attributes and children of the node are not automatically copied. The content of the xsl:copy element is a template for the attributes and children of the created node; the content is instantiated only for nodes of types that can have attributes or children (i.e. root nodes and element nodes). The root node is treated specially because the root node of the result tree is created implicitly. When the current node is the root node, xsl:copy will not create a root node, but will just use the content template.
- Overrides:
- execute in interface ElemUse
- Parameters:
transformer
- non-null reference to the the current transform-time state.
- Throws:
TransformerException
-
public String getNodeName()
Return the node name.
- Specified by:
- getNodeName in interface Node
- Overrides:
- getNodeName in interface ElemTemplateElement
- Returns:
- This element's name
public int getXSLToken()
Get an int constant identifying the type of element.
- Overrides:
- getXSLToken in interface ElemTemplateElement
- Returns:
- The token ID for this element
- See Also:
Constants