| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.ResultDocument
ResultDocument | public class ResultDocument extends Instruction (Code) | | The compiled form of an xsl:result-document element in the stylesheet.
The xsl:result-document element takes an attribute href="filename". The filename will
often contain parameters, e.g. {position()} to ensure that a different file is produced
for each element instance.
There is a further attribute "format" which determines the format of the
output file, it identifies the name of an xsl:output element containing the output
format details. In addition, individual serialization properties may be specified as attributes.
These are attribute value templates, so they may need to be computed at run-time.
|
Method Summary | |
public void | display(int level, NamePool pool, PrintStream out) Diagnostic print of expression structure. | public int | getInstructionNameCode() | public ItemType | getItemType(TypeHierarchy th) Get the item type of the items returned by evaluating this instruction
the static item type of the instruction. | public Iterator | iterateSubExpressions() | public Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType) | public TailCall | processLeavingTail(XPathContext context) | protected void | promoteInst(PromotionOffer offer) Handle promotion offers, that is, non-local tree rewrites. | public void | setContent(Expression content) | public static void | setSerializationProperty(Properties details, String uri, String lname, String value, NamespaceResolver nsResolver, boolean prevalidated, NameChecker checker) Validate a serialization property and add its value to a Properties collection
Parameters: details - the properties to be updated Parameters: uri - the uri of the property name Parameters: lname - the local part of the property name Parameters: value - the value of the serialization property. | public Expression | simplify(StaticContext env) Simplify an expression. | public Expression | typeCheck(StaticContext env, ItemType contextItemType) |
display | public void display(int level, NamePool pool, PrintStream out)(Code) | | Diagnostic print of expression structure. The expression is written to the System.err
output stream
Parameters: level - indentation level for this expression Parameters: out - |
getInstructionNameCode | public int getInstructionNameCode()(Code) | | Get the name of this instruction for diagnostic and tracing purposes
(the string "xsl:result-document")
|
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Get the item type of the items returned by evaluating this instruction
the static item type of the instruction. This is empty: the result-document instructionreturns nothing. Parameters: th - |
iterateSubExpressions | public Iterator iterateSubExpressions()(Code) | | Get all the XPath expressions associated with this instruction
(in XSLT terms, the expression present on attributes of the instruction,
as distinct from the child instructions in a sequence construction)
|
setContent | public void setContent(Expression content)(Code) | | Set the expression that constructs the content
|
setSerializationProperty | public static void setSerializationProperty(Properties details, String uri, String lname, String value, NamespaceResolver nsResolver, boolean prevalidated, NameChecker checker) throws XPathException(Code) | | Validate a serialization property and add its value to a Properties collection
Parameters: details - the properties to be updated Parameters: uri - the uri of the property name Parameters: lname - the local part of the property name Parameters: value - the value of the serialization property. In the case of QName-valued values,this will use lexical QNames if prevalidated is false, Clark-format names otherwise Parameters: nsResolver - resolver for lexical QNames; not needed if prevalidated Parameters: prevalidated - true if values are already known to be valid and lexical QNames have beenexpanded into Clark notation Parameters: checker - |
|
|