net.sf.saxon.instruct

Class Comment

public final class Comment extends SimpleNodeConstructor

An instruction representing an xsl:comment element in the stylesheet.
Constructor Summary
Comment()
Construct the instruction
Method Summary
protected StringcheckContent(String comment, XPathContext context)
Check the content of the node, and adjust it if necessary
voiddisplay(int level, NamePool pool, PrintStream out)
intgetCardinality()
intgetInstructionNameCode()
Get the instruction name, for diagnostics and tracing return the string "xsl:comment"
ItemTypegetItemType(TypeHierarchy th)
voidlocalTypeCheck(StaticContext env, ItemType contextItemType)
TailCallprocessLeavingTail(XPathContext context)
Process this instruction, to output a Comment Node

Constructor Detail

Comment

public Comment()
Construct the instruction

Method Detail

checkContent

protected String checkContent(String comment, XPathContext context)
Check the content of the node, and adjust it if necessary

Parameters: comment the supplied content context the dynamic context

Returns: the original content, unless adjustments are needed

Throws: net.sf.saxon.trans.DynamicError if the content is invalid

display

public void display(int level, NamePool pool, PrintStream out)

getCardinality

public int getCardinality()

getInstructionNameCode

public int getInstructionNameCode()
Get the instruction name, for diagnostics and tracing return the string "xsl:comment"

getItemType

public ItemType getItemType(TypeHierarchy th)

localTypeCheck

public void localTypeCheck(StaticContext env, ItemType contextItemType)

processLeavingTail

public TailCall processLeavingTail(XPathContext context)
Process this instruction, to output a Comment Node

Parameters: context the dynamic context for this transformation

Returns: a TailCall representing a call delegated to the caller. Always returns null in this implementation