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
|
void | display(int level, NamePool pool, PrintStream out) |
protected int | evaluateNameCode(XPathContext context) |
int | getCardinality() |
int | getDependencies() |
int | getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes |
ItemType | getItemType(TypeHierarchy th) |
Iterator | iterateSubExpressions() |
void | localTypeCheck(StaticContext env, ItemType contextItemType) |
TailCall | processLeavingTail(XPathContext context)
Process this instruction, that is, produce a processing-instruction node in the
result sequence. |
protected void | promoteInst(PromotionOffer offer)
Offer promotion for subexpressions. |
Expression | simplify(StaticContext env) |
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: net.sf.saxon.trans.DynamicError if the content is invalid
Returns: the string "xsl:processing-instruction"
Parameters: context the dynamic context of this transformation
Returns: always returns null in this implementation
Throws: XPathException if any non-recoverable dynamic error occurs
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