This bug entry addresses two problems with collections specific to Saxon on .NET.
Firstly, when a collection URI is registered using the method Processor.RegisterCollection(), the first attempt to access the collection using the collection() function succeeds, but the second and subsequent attempts return an empty sequence.
Secondly, when Saxon is invoked from the command line using the Transform or Query commands, collections implemented as in the Java product are available: namely (a) collection URIs that map to a catalog file, and (b) collection URIs that map to a filestore directory. But when Saxon is invoked via the API, only collections registered using the Processor.RegisterCollection() interface are available.
A patch is being placed in Subversion (affects module DotNetCollectionURIResolver) to fix both these issues. A test case for collections is also being added to the Examples.cs demonstration program.