Project

Profile

Help

Bug #2417

closed

Failure if a type contains both an enumeration and a restriction

Added by Michael Kay over 9 years ago. Updated almost 9 years ago.

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

100%

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

Description

Reported here:

http://stackoverflow.com/questions/27307880/xml-schema-union-ignore-whitespace-property/27314369#comment50842930_27314369

in XSD, given a xs:simpleType defined using xs:restriction, Saxon fails if the xs:restriction node contains both an xs:assertion and a xs:enumeration. It fails trying to validate the enumeration facet against the assertion giving the following error: Validation context required. In order to reproduce this error you can add this element to an XML Schema: . Please confirm bug.

Actions #1

Updated by Michael Kay over 9 years ago

  • Status changed from New to Resolved

Fixed by not checking the enumeration values against the assertion (it's only done to generate a warning).

Patch committed for 9.6 and 9.7.

Actions #2

Updated by O'Neil Delpratt over 9 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.7

Bug fix applied in the Saxon 9.6.0.7 maintenance release.

Actions #3

Updated by O'Neil Delpratt almost 9 years ago

  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.7 added
Actions #4

Updated by O'Neil Delpratt almost 9 years ago

  • Sprint/Milestone set to 9.6.0.7

Please register to edit this issue

Also available in: Atom PDF