Project

Profile

Help

Bug #5737

closed

Duplicated error message from schema validator

Added by Michael Kay about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2022-11-14
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

Actions #1

Updated by Michael Kay about 2 years ago

What's happening in this case is that validateAttributes() is being called twice. The "standard" call is from the ContentValidator handling the specific complex type, but because the element has assertions, a second call is being made, as part of the process of building the tree used for assertion testing. Because of the structure of the validation pipeline, it may be difficult to avoid validating the attributes twice, but perhaps the second call can be done silently, without generating additional error messages.

Actions #2

Updated by Michael Kay about 2 years ago

  • Status changed from New to Resolved
  • Applies to branch 11, trunk added
  • Fix Committed on Branch 11, trunk added

I've fixed this by making AttributeValidator.validateAttributes() remember the most recent call and return the previous result if called twice to validate the same AttributeMap.

Actions #3

Updated by Community Admin almost 2 years ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 12.0 added

Bug issue fix applied in the Saxon 12.0 Major Release. Leaving this bug marked as Resolved until fix applied

Actions #4

Updated by O'Neil Delpratt almost 2 years ago

  • Fixed in Maintenance Release 11.5 added

Bug applied in the Saxon 11.5 Maintenance release.

Actions #5

Updated by O'Neil Delpratt almost 2 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF