Project

Profile

Help

Bug #4784

closed

Register specific CollectionFinder class with Saxon configuration file

Added by Nico Kutscherauer over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Configuration
Sprint/Milestone:
-
Start date:
2020-10-05
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 9.9, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:

Description

Hi,

As described on the Saxon documentation page, I should be able to create my own class for resolving URIs for the funcitons fn:collection() and/or fn:uri-collection(): https://www.saxonica.com/html/documentation/sourcedocs/collections/user-collections.html

I would like to use this, but I have to configure the Saxon by a config file. If I understand your example config correctly, I would have to set the attribute /configuration/global/@collectionFinder (https://www.saxonica.com/documentation/index.html#!configuration/configuration-file). Unfortunatelly this attribute seems to have no effect.

After debugging I have to assume, that the ConfigurationReader ignores this attribute completely and that it is currently not possible to configure this feature using a config file. Am I right or have I missed something?

Best Regards, Nico

PS: I'm currently using Saxon 9.9.1-5, but I checked also the source code of the ConfigurationReader in Saxon 10-2 and I could find a change for the collectionFinder attribute.

Actions #1

Updated by Michael Kay over 3 years ago

Indeed, it appears that this attribute was added to the documentation and to the configuration file schema, but not to the configuration reader or its test cases.

Actions #2

Updated by Michael Kay over 3 years ago

Added JUnit test s9apiTest.TestCollections.testCollectionFinderConfigFile.

One-line fix in ConfigurationReader.readGlobalElement: add

applyProperty(props, "collectionFinder", Feature.COLLECTION_FINDER_CLASS);
Actions #3

Updated by Michael Kay over 3 years ago

  • Category set to Configuration
  • Status changed from New to Resolved
  • Assignee set to Michael Kay
  • Priority changed from Low to Normal
  • Applies to branch trunk added
  • Fix Committed on Branch 10, trunk added

Fixed on the 10.x and development branches

Actions #4

Updated by O'Neil Delpratt over 3 years ago

Bug fix applied in the Saxon 10.3 maintenance release

Actions #5

Updated by O'Neil Delpratt over 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 10.3 added

Please register to edit this issue

Also available in: Atom PDF