Skip to content

Extend TypeOfFrame/ClassInFrameRef with ability to describe subelements that are minimally required #649

Closed

Description

@skinkie

In order to make a profile definition TypeOfFrame/ClassInFrameRef is an embedded way to describe a profile. What is currently lacking is the ability to describe the elements required in the profile.

If from this minimal definition a derived XML Schema (or Schematron) can be generated, every profile can be validated against an always up to date NeTEx upstream, without manual the manual labor of maintaining an extra XML Schema by hand (such as EPIP, Dutch, etc.)

Activity

  1. added
    enhancement
    on Jan 25, 2024
  2. Aurige commented on Jan 25, 2024

    @Aurige
    Contributor

    Datex 2 also worked in that direction, https://docs.datex2.eu/v3.0/profiling/index.html but in a different way (it looks to be a dedicated tool)

  3. ue71603 commented on Jan 25, 2024

    @ue71603
    Contributor

    you want a required="true" ?

  4. skinkie commented on Jan 25, 2024

    @skinkie
    ContributorAuthor

    you want a required="true" ?

    Yes, but not on ClassInFrameRef, but on something like an Element under it. For example passingTimes are required er required in ServiceJourney for EPIP and Nordic profile. I would like to see something like:

    <ClassInFrameRef ref="ServiceJourney">
      <ObjectInClassRef ref="Description" use="optional" /> <!-- minOccurs in root takes preference, hence this is redundant, but might be interesting to mention that the generic implementation would consider it -->
      <ObjectInClassRef ref="passingTimes" use="required" />
      <ObjectInClassRef ref="calls" use="prohibited" />
    </ClassInFrameRef>
  5. ue71603 commented on Feb 2, 2024

    @ue71603
    Contributor

    fixed in #650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions