net.sf.saxon.instruct
Class Copy
java.lang.Object
net.sf.saxon.instruct.Instruction
net.sf.saxon.instruct.ExprInstruction
net.sf.saxon.instruct.ElementCreator
net.sf.saxon.instruct.Copy
- All Implemented Interfaces:
- Expression, java.io.Serializable, javax.xml.transform.SourceLocator
- public class Copy
- extends ElementCreator
Handler for xsl:copy elements in stylesheet.
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.instruct.Instruction |
assembleParams, assembleTunnelParams, getChildren, getColumnNumber, getInstructionDetails, getInstructionName, getLineNumber, getPublicId, getSystemId, getSystemId, process, processChildren, processChildrenLeavingTail, recoverableError, setChildren, setSourceLocation, styleError, styleError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Copy
public Copy(AttributeSet[] useAttributeSets,
boolean copyNamespaces,
SchemaType schemaType,
int validation)
setInstructionDetails
public void setInstructionDetails(Controller controller,
NamePool namePool,
InstructionDetails details)
- Get the name of this instruction for diagnostic and tracing purposes
- Specified by:
setInstructionDetails
in class Instruction
getNameCode
protected int getNameCode(XPathContext context)
throws javax.xml.transform.TransformerException
- Callback from ElementCreator when constructing an element
- Specified by:
getNameCode
in class ElementCreator
- Parameters:
context
-
- Returns:
- the namecode of the element to be constructed
- Throws:
javax.xml.transform.TransformerException
outputNamespaceNodes
protected void outputNamespaceNodes(XPathContext context,
Receiver receiver)
throws javax.xml.transform.TransformerException
- Callback to output namespace nodes for the new element.
- Specified by:
outputNamespaceNodes
in class ElementCreator
- Parameters:
context
- The execution contextreceiver
- the Receiver where the namespace nodes are to be written
- Throws:
javax.xml.transform.TransformerException
processLeavingTail
public TailCall processLeavingTail(XPathContext context)
throws javax.xml.transform.TransformerException
- Description copied from class:
ElementCreator
- Evaluate the instruction to produce a new element node
- Overrides:
processLeavingTail
in class ElementCreator
- Parameters:
context
-
- Returns:
- null (this instruction never returns a tail call)
- Throws:
javax.xml.transform.TransformerException
getXPathExpressions
protected void getXPathExpressions(java.util.List list)
- Specified by:
getXPathExpressions
in class ExprInstruction
display
public void display(int level,
NamePool pool)
- Diagnostic print of expression structure. The expression is written to the System.err
output stream
- Parameters:
level
- indentation level for this expression