Project

Profile

Help

Bug #2100

closed

Incorrect behaviour when an abstract type is used for validation

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema conformance
Sprint/Milestone:
-
Start date:
2014-07-02
Due date:
% Done:

100%

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

Description

During schema validation, if the declared type of an element is abstract, and there is no xsi:type attribute, Saxon attempts to validate the element as if the type had an empty content model. This means that if the instance is non-empty, an inappropiate error message is produced, and if the instance is empty, it is incorrectly treated as valid. As stated in 3.4.1 (with greater clarity in the 1.1 version of the spec) validating against an abstract type should result in a validation error.

Please register to edit this issue

Also available in: Atom PDF