Skip to content

Add identity constraints for xs:IDREF fields #373

@jmwaura

Description

@jmwaura

The current ID references are unconstrained, potentially allowing improperly referenced entities to pass validation.
As an example, this is valid under the current schema:

<vip_object>
  <precinct id="precinctA14">
    ...
  </precinct>
  <polling_location id="pollinglocationA14">
    ...
  </polling_location>
  <street_segment id="streetsegmentA14.538">
    <precinct_id>pollinglocationA14</precinct_id>
    ...
  </street_segment>
</vip_object>

Ideally, the schema should use identity constraints (or some similar mechanism, if one exists) to ensure that the above example would fail validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions