usnistgov / VoterRecordsInterchange

Common data format specification for voter records interchange data
https://pages.nist.gov/VoterRecordsInterchange
Other
14 stars 2 forks source link

References to Address group in XSD make derive by restriction difficult #29

Open JDziurlaj opened 3 months ago

JDziurlaj commented 3 months ago

Organization Name: The Turnout

Organization Type: 1 (CTR)

Document (e.g., VoterRecordsInterchange): NIST_V0_voter_records_interchange.xsd

Reference (Include section and paragraph number): RequestProxy, RequestHelper, Voter, et al.

Comment (Include rationale for comment): In creating a subset schema, one needs to derive by restriction the various complexTypes in the schema. However, the structuring of certain complexTypes make this task very difficult. In particular, it appears that it is not possible to derive by restriction a complexType containing elements who themselves contain anonymous complex types.

Example:

<xsd:element name="MailingAddress" minOccurs="0">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:group ref="Address" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:element>

See also 1 2

Suggested Change: Refactor schema to use name complexType for accessing the Address group.


Organization Type: 1 = Federal, 2 = Industry, 3 = Academia, 4 = Self, 5 = Other