Project

Profile

Help

Support #3641

closed

XML validation via XSD does not handle conditionally required fields

Added by Cam Scofield over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema conformance
Sprint/Milestone:
-
Start date:
2018-01-23
Due date:
% Done:

0%

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

Description

when the 'requiredLevel' tag in an XSD file has a value of 'Conditionally Required' it is not properly validated against in the XML. Fields that would become required based on the value of another field and not being checked. I am providing XSD files, xml, and the output of the call to execute the saxon-EE call.


Files

comand data.txt (18.4 KB) comand data.txt command being executed and its output Cam Scofield, 2018-01-23 23:35
test_data.xml (4.8 KB) test_data.xml xml that should fail validation because the hasBatteries tag is marked 'yes', which should force another field to be present for pass validation Cam Scofield, 2018-01-23 23:35
xsds used for validation.zip (697 KB) xsds used for validation.zip these are the XSDs the xml is validating against Cam Scofield, 2018-01-23 23:35

Please register to edit this issue

Also available in: Atom PDF