com.icl.saxon.functions

Class Document

public class Document extends Function

Method Summary
Valueevaluate(Context c)
evaluate() handles evaluation of the function
intgetDataType()
Determine the data type of the expression
intgetDependencies()
Determine which aspects of the context the expression depends on.
NodeSetValuegetDocuments(Value arg0, NodeSetValue arg1, String styleSheetURL, Context context)
getDocuments() evaluates the function.
StringgetName()
Expressionreduce(int dep, Context context)
Remove dependencies.
Expressionsimplify()
Simplify and validate.

Method Detail

evaluate

public Value evaluate(Context c)
evaluate() handles evaluation of the function

getDataType

public int getDataType()
Determine the data type of the expression

Returns: Value.NODESET

getDependencies

public int getDependencies()
Determine which aspects of the context the expression depends on. The result is a bitwise-or'ed value composed from constants such as Context.VARIABLES and Context.CURRENT_NODE

getDocuments

public NodeSetValue getDocuments(Value arg0, NodeSetValue arg1, String styleSheetURL, Context context)
getDocuments() evaluates the function.

Parameters: arg0 The value of the first argument arg1 The value of the second argument, if there is one; otherwise null styleSheetURL The URI of the node in the stylesheet containing the expression. Needed only when the first argument is not a nodeset and the second argument is omitted. context The evaluation context

Returns: a NodeSetValue containing the root nodes of the selected documents (or element nodes if the URI references contain fragment identifiers)

getName

public String getName()

reduce

public Expression reduce(int dep, Context context)
Remove dependencies.

simplify

public Expression simplify()
Simplify and validate.