com.saxonica.extra
Class ResultDocumentFunction
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.CompileTimeFunction
com.saxonica.extra.ResultDocumentFunction
- All Implemented Interfaces:
- Serializable, SourceLocator, EvaluableItem, SequenceIterable, InstructionInfoProvider
public class ResultDocumentFunction
- extends CompileTimeFunction
This class implements the extension function saxon:result-document(), which offers similar functionality
in XQuery to the xsl:result-document instruction in XSLT 2.0. The three arguments are
- The URI of the result document (href) - a string
- The content of the result document - a content sequence processed in the same way
as the sequence passed to xsl:result-document (or to the document {} constructor in XQuery)
- An xsl:output element which contains serialization properties in the same way as
saxon:serialize()
The class implements a compile-time function, which is translated into a ResultDocument instruction
for evaluation at run-time.
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.functions.SystemFunction |
addDocToPathMap, checkArguments, computeCardinality, computeSpecialProperties, copy, getDetails, getErrorCodeForTypeErrors, getItemType, makeSystemFunction, optimize, setDetails |
Methods inherited from class net.sf.saxon.expr.FunctionCall |
addExternalFunctionCallToPathMap, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionName, toString, typeCheck |
Methods inherited from class net.sf.saxon.expr.Expression |
addToPathMap, adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, effectiveBooleanValue, evaluateAsString, explain, findParentOf, getCardinality, getColumnNumber, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, iterateEvents, markTailFunctionCalls, process, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation |
ResultDocumentFunction
public ResultDocumentFunction()
simplify
public Expression simplify(ExpressionVisitor visitor)
throws XPathException
- Simplify the function call. Default method is to simplify each of the supplied arguments and
evaluate the function if all are now known.
- Overrides:
simplify
in class FunctionCall
- Parameters:
visitor
- an expression visitor
- Returns:
- the simplified expression
- Throws:
XPathException
- if an error is discovered during expression
rewriting
Copyright (C) Michael H. Kay. All rights reserved.