Collections

Saxon implements the collection() and uri-collection() functions by passing the given collection URI (or null, if the default collection is requested) to a user-provided Java CollectionFinder or C# CollectionFinder. This section describes how the standard (default) collection finder behaves, if no user-written collection finder is supplied. For information on supplying a user-written CollectionFinder, see Writing your own collection finder. There are some differences between Java and C#.

In XSLT 3.0 and XQuery 3.1, collections can contain resources other than XML documents: for example, JSON documents, plain text documents, and binary files.

In this section: