ITxPT / DATA4PTTools

Shared space for the development of the DATA4PT Greenlight NeTEx validation tool(s)
MIT License
10 stars 2 forks source link

DATA4PTToolsv0.4.2 everyLineIsReferenced #49

Closed marasonic closed 1 year ago

marasonic commented 2 years ago

const journeyLinePath = xpath.join( xpath.path.FRAMES, "TimetableFrame", "vehicleJourneys", "ServiceJourney", );

In the EPIP-based documents, the LineRef cannot be specified within ServiceJourney. Instead, the Line is referenced from the: ServiceJourneyPattern id="C::ServiceJourneyPattern:1::" version="any" RouteView id="C::RouteView:1::" LineRef ref="C::Line:1::" or routes Route id="C::Route:1: version="any" LineRef ref="C::Line:1"

pkvarnfors commented 1 year ago

This validation script is not intended for use with the EPIP profile. We are currently modifying the tool so that it will be clearer which scripts that works for a selected profile. We will also add a concept of packages which includes both a XSD and the scripts for validating a given profile. So if you select the EPIP package you will get the correct XSD and also the corresponding scripts.