Bug #5737
closed

Duplicated error message from schema validator
100%
Updated by Michael Kay 7 months 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.
Updated by Michael Kay 7 months 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
.
Updated by Community Admin 5 months 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
Updated by O'Neil Delpratt 4 months ago
- Fixed in Maintenance Release 11.5 added
Bug applied in the Saxon 11.5 Maintenance release.
Please register to edit this issue