Project

Profile

Help

Bug #4994

closed

s9api interface: interaction of SchemaValidator and DocumentBuilder

Added by Michael Kay almost 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
s9api API
Sprint/Milestone:
-
Start date:
2021-05-18
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

When a SchemaValidator is set on a DocumentBuilder, the InvalidityReporter set on the SchemaValidator is not actually used to report any validation errors.

Some other less significant properties set on the SchemaValidator also appear to be ignored, for example the options useXsiSchemaLocation, collectStatistics, expandAttributeDefaults, and schema parameters.

Actions #1

Updated by Michael Kay almost 2 years ago

  • Status changed from New to In Progress
  • Applies to branch 11, trunk added
  • Fix Committed on Branch 11, trunk added
  • Platforms .NET, Java added

I have

(a) changed DocumentBuilder to pick up additional properties from the SchemaValidator, in particular the options useXsiSchemaLocation, expandAttributeDefaults, and schema parameters.

(b) extended the Javadoc to make it clear how the supplied SchemaValidator is used.

Still to do:

  • More unit tests

  • Equivalent changes for SaxonCS

  • Clarity and test what happens when the document is invalid against the schema: how are the errors reported?

Actions #2

Updated by Michael Kay almost 2 years ago

  • Category set to s9api API
  • Status changed from In Progress to Resolved
  • Priority changed from Low to Normal

I have now arranged for validation parameters and the invalidity handler set on the SchemaValidator to be used, and have added unit tests and API documentation both on SaxonJ and SaxonCS

Actions #3

Updated by Debbie Lockett over 1 year ago

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

Bug fix applied in the Saxon 11.4 maintenance release.

Please register to edit this issue

Also available in: Atom PDF