Bug #3965
closedfn:transform: saxon:schema-validation in vendor-options
100%
Description
The Saxon documentation of fn:transform states:
Validation of source documents may be requested either (a) by supplying a configuration file in which the option has been set, or (b) by setting the option "vendor-options": map {QName('http://saxon.sf.net/', 'schema-validation'): 'strict'}. (The value 'lax' can also be used.) Either option affects documents supplied using the source-node, source-location, or global-context-item options. Setting the option in the configuration file also affects documents read using the doc() or document() functions. Neither option affects documents supplied in the initial-match-selection option, or in any of the xxx-params options (such as stylesheet-params).
However, the code makes no attempt to examine any schema-validation option in the vendor-options. There is code to perform validation if the variable schemaValidation is set, but this variable is never set to any value other than its default, which performs no validation.
Note also, in qt3extra, test fn-transform-6 tests a withdrawn feature, the ability to set individual configuration options in the vendor=options map.
Updated by Michael Kay over 5 years ago
- Category set to Saxon extensions
- Status changed from New to Resolved
- Priority changed from Low to Normal
- Applies to branch 9.8, 9.9 added
- Fix Committed on Branch 9.8, 9.9 added
Fixed: fn:transform
now recognizes saxon:schema-validation
in the vendor options.
Tested by running test-set "as" through the XSLT test driver on 9.9 (this calls fn:transform
with this option for some tests)
On 9.8, the code changes are identical, but they have been regression tested only.
Updated by O'Neil Delpratt over 5 years ago
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.8.0.15 added
Bug fix applied in the Saxon 9.8.0.15 maintenance release. Leave open to the Saxon 9.9 maintenance release.
Updated by O'Neil Delpratt over 5 years ago
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.9.0.2 added
Bug fix applied in the Saxon 9.9.0.2 maintenance release.
Please register to edit this issue