NeTEx-CEN / NeTEx

NeTEx is a CEN Technical Standard for exchanging Public Transport schedules and related data.
http://netex-cen.eu
GNU General Public License v3.0
78 stars 39 forks source link

AvailabilityConditionRef is not checked for in the XSD #2

Closed skinkie closed 6 years ago

nick-knowles commented 6 years ago

There is a referential integrity constraint for AvailabilityCondition in the publication schema - are ou sure you have specified a version on the ref?

    <!-- =====AvailabilityCondition============================== -->
    <xsd:keyref name="AvailabilityCondition_AnyKeyRef" refer="netex:AvailabilityCondition_AnyVersionedKey">
        <xsd:selector xpath=".//netex:AvailabilityConditionRef"/>
        <xsd:field xpath="@ref"/>
        <xsd:field xpath="@version"/>
    </xsd:keyref>
    <xsd:key name="AvailabilityCondition_AnyVersionedKey">
        <xsd:selector xpath=".//netex:AvailabilityCondition | .//netex:SimpleAvailabilityCondition |  .//netex:ValidDuring "/>
        <xsd:field xpath="@id"/>
        <xsd:field xpath="@version"/>
    </xsd:key>
skinkie commented 6 years ago

I see what you mean now, and you are right. If the version is not specified, it will not validate.