net.sf.saxon.instruct
public class ProcessingInstruction extends SimpleNodeConstructor
| Constructor Summary | |
|---|---|
| ProcessingInstruction(Expression name)
Create an xsl:processing-instruction instruction | |
| Method Summary | |
|---|---|
| protected String | checkContent(String data, XPathContext context)
Check the content of the node, and adjust it if necessary
|
| Expression | copy()
Copy an expression. |
| int | evaluateNameCode(XPathContext context) |
| void | explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
| int | getCardinality() |
| int | getDependencies() |
| int | getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes |
| ItemType | getItemType(TypeHierarchy th) |
| Expression | getNameExpression()
Get the expression that defines the processing instruction name |
| Iterator<Expression> | iterateSubExpressions() |
| void | localTypeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
| void | processValue(CharSequence value, XPathContext context)
Process the value of the node, to create the new node. |
| protected void | promoteInst(PromotionOffer offer)
Offer promotion for subexpressions. |
| boolean | replaceSubExpression(Expression original, Expression replacement)
Replace one subexpression by a replacement subexpression |
| Expression | simplify(ExpressionVisitor visitor) |
Parameters: name the expression used to compute the name of the generated processing-instruction
Parameters: data the supplied content
Returns: the original content, unless adjustments are needed
Throws: XPathException if the content is invalid
Returns: the copy of the original expression
Returns: the string "xsl:processing-instruction"
Returns: the expression that defines the processing instruction name
Parameters: value the string value of the new node context the dynamic evaluation context
Throws: XPathException
Parameters: offer details of the offer, for example the offer to move expressions that don't depend on the context to an outer level in the containing expression
Throws: XPathException if any error is detected
Parameters: original the original subexpression replacement the replacement subexpression
Returns: true if the original subexpression is found