public class Document extends SystemFunction implements XSLTFunction
operationargumentlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
Document() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkArguments(StaticContext env)
Method called during static type checking
|
int |
computeCardinality()
Determine the static cardinality
|
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type).
|
SequenceIterator |
iterate(XPathContext context)
iterate() handles evaluation of the function:
it returns a sequence of Document nodes
|
static NodeInfo |
makeDoc(java.lang.String href,
java.lang.String baseURL,
XPathContext c,
javax.xml.transform.SourceLocator locator)
Supporting routine to load one external document given a URI (href) and a baseURI
|
Expression |
preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
|
static void |
sendDoc(java.lang.String href,
java.lang.String baseURL,
XPathContext c,
javax.xml.transform.SourceLocator locator,
Receiver out)
Supporting routine to push one external document given a URI (href) and a baseURI to a given Receiver.
|
void |
sendDocuments(XPathContext context,
Receiver out)
Copy the documents identified by this expression to a given Receiver.
|
addContextDocumentArgument, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefaultcheckArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheckadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorpublic void checkArguments(StaticContext env) throws XPathException
SystemFunctioncheckArguments in class SystemFunctionXPathExceptionpublic int computeCardinality()
computeCardinality in class SystemFunctionpublic int computeSpecialProperties()
computeSpecialProperties in class SystemFunctionpublic Expression preEvaluate(StaticContext env)
preEvaluate in class FunctionCallpublic SequenceIterator iterate(XPathContext context) throws XPathException
iterate in interface Expressioniterate in class ComputedExpressioncontext - supplies the context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionpublic static NodeInfo makeDoc(java.lang.String href, java.lang.String baseURL, XPathContext c, javax.xml.transform.SourceLocator locator) throws XPathException
XPathExceptionpublic void sendDocuments(XPathContext context, Receiver out) throws XPathException
XPathExceptionpublic static void sendDoc(java.lang.String href,
java.lang.String baseURL,
XPathContext c,
javax.xml.transform.SourceLocator locator,
Receiver out)
throws XPathException
XPathException