net.sf.saxon.instruct
public class DocumentInstr extends ParentNodeConstructor
Conceptually it represents an XSLT instruction xsl:document-node, with no attributes, whose content is a complex content constructor for the children of the document node.
Constructor Summary | |
---|---|
DocumentInstr(boolean textOnly, String constantText, String baseURI) |
Method Summary | |
---|---|
void | display(int level, NamePool pool, PrintStream out)
Display this instruction as an expression, for diagnostics |
Item | evaluateItem(XPathContext context)
Evaluate as an expression. |
int | getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
|
int | getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes
(the string "document-constructor") |
ItemType | getItemType(TypeHierarchy th) |
TailCall | processLeavingTail(XPathContext context) |
void | setValidationAction(int action)
Set the validation action |
Expression | simplify(StaticContext env)
Simplify an expression. |
Expression | typeCheck(StaticContext env, ItemType contextItemType) |
Returns: the simplified expression
Throws: net.sf.saxon.trans.XPathException if an error is discovered during expression rewriting