net.sf.saxon.functions

Class Collection

public class Collection extends SystemFunction

Implement the fn:collection() function. The Saxon implementation loads an XML document called the collection catalogue, which acts as an index of the collection.

The structure of this index is:

 <collection>
    <doc href="doc1.xml">
    <doc href="doc2.xml">
    <doc href="doc3.xml">
 </collection>
 

The document URIs are resolved relative to the base URI of the doc element in the catalogue document.

Method Summary
voidcheckArguments(StaticContext env)
SequenceIteratoriterate(XPathContext context)
ExpressionpreEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing

Method Detail

checkArguments

public void checkArguments(StaticContext env)

iterate

public SequenceIterator iterate(XPathContext context)

preEvaluate

public Expression preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing