Project

Profile

Help

Bug #3965

closed

fn:transform: saxon:schema-validation in vendor-options

Added by Michael Kay over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2018-10-10
Due date:
% Done:

100%

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

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.

Please register to edit this issue

Also available in: Atom PDF