net.sf.saxon.instruct
Class Text
java.lang.Object
net.sf.saxon.instruct.Instruction
net.sf.saxon.instruct.ExprInstruction
net.sf.saxon.instruct.SimpleNodeConstructor
net.sf.saxon.instruct.Text
- All Implemented Interfaces:
- Serializable, SourceLocator, Expression
public class Text
- extends SimpleNodeConstructor
Handler for xsl:text elements in stylesheet.
- See Also:
- Serialized Form
Constructor Summary |
Text(boolean disable)
Create an xsl:text instruction |
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 |
Text
public Text(boolean disable)
- Create an xsl:text instruction
- Parameters:
disable
- set to true if output escaping is to be disabled
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
getResultType
public SequenceType getResultType()
- Description copied from class:
Instruction
- Get the static type of the value returned by the instruction
- Overrides:
getResultType
in class Instruction
- Returns:
- the SequenceType that the returned value will conform to.
processLeavingTail
public TailCall processLeavingTail(XPathContext context)
throws TransformerException
- Process this instruction, that is, produce a processing-instruction node in the
result sequence.
- Specified by:
processLeavingTail
in class Instruction
- Parameters:
context
- the dynamic context of this transformation
- Returns:
- always returns null in this implementation
- Throws:
TransformerException
- if any non-recoverable dynamic error occurs
promoteInst
public void promoteInst(PromotionOffer offer)
- Specified by:
promoteInst
in class ExprInstruction
typeCheck
public void typeCheck(StaticContext env)
- Specified by:
typeCheck
in class SimpleNodeConstructor