net.sf.saxon.instruct
public final class Comment extends SimpleNodeConstructor
| Constructor Summary | |
|---|---|
| Comment()
Construct the instruction | |
| Method Summary | |
|---|---|
| protected String | checkContent(String comment, XPathContext context)
Check the content of the node, and adjust it if necessary
|
| Expression | copy()
Copy an expression. |
| void | explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
| int | getCardinality() |
| int | getInstructionNameCode()
Get the instruction name, for diagnostics and tracing
return the string "xsl:comment" |
| ItemType | getItemType(TypeHierarchy th) |
| void | localTypeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
| void | processValue(CharSequence value, XPathContext context)
Process the value of the node, to create the new node. |
Parameters: comment the supplied content context the dynamic context
Returns: the original content, unless adjustments are needed
Throws: XPathException if the content is invalid
Returns: the copy of the original expression
Parameters: value the string value of the new node context the dynamic evaluation context
Throws: XPathException