usnistgov / CastVoteRecords

Common data format specification for cast vote records
https://pages.nist.gov/CastVoteRecords
Other
20 stars 2 forks source link

XSD invalid in XSD 1.1 Context #46

Open JDziurlaj opened 10 months ago

JDziurlaj commented 10 months ago

Organization Name: The Turnout

Organization Type: 1 (CTR)

Document (e.g., CastVoteRecords): NIST_V0_cast_vote_records.xsd

Comment (Include rationale for comment): The CVR XSD is valid according to the W3C XSD specification, version 1.0. However, the schema does not explicitly reference a supported XSD version nor does the text of the specification. This is true of all CDF XSDs. A problem materializes in the CVR CDF when a XSD validator chooses to interpret the CVR XSD according to XSD 1.1. This is due to a bug in the drafting on XSD 1.0 that was fixed in 1.1 which causes a XSD validation error.

Error message from Saxon-EE:

The type Q{http://itl.nist.gov/ns/voting/1500-103/v1}Image has complex content so it cannot be derived by extension from the complex type Q{http://itl.nist.gov/ns/voting/1500-103/v1}File which has simple content

I checked the other two known XSD 1.1 engines and neither complained about this issue.

See also: