com.icl.saxon.om
public final class DocumentPool extends Object
Method Summary | |
---|---|
int | add(DocumentInfo doc, String name)
Add a document to the pool, and allocate a document number |
DocumentInfo | find(String name)
Get the document with a given name |
int | getDocumentNumber(DocumentInfo doc)
Get the document number of a document that is already in the pool.
|
int | getNumberOfDocuments()
Get the number of documents in the pool |
Parameters: doc The DocumentInfo for the document in question name The name of the document. May be null, in the case of the principal source document or a result tree fragment. Used for the URI of a document loaded using the document() function.
Returns: the document number, unique within this document pool
Returns: the DocumentInfo with the given name if it exists, or null if it is not found.
Returns: the document number