Example
Netex_VersioningExample_Step_05_GeneralFrame.xml
functions/versioning/Netex_VersioningExample_Step_05_GeneralFrame.xml
Element names link to their declarations.
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==== SImple Network Version Example ======
This is part 4 of a multistep example on versioning.
Step 1: Create a single SCHEDULED STOP POINT Stop A
- Create a first version v001 Service FRAME ntwkf001 that holds it
Step2 Add another SCHEDULED STOP POINT Stop B,
- Add a VALIDITY CONDITION for the SERVICE FRAME, using a DAY TYPE
- Modify SCHEDULED STOP POINT Stop A v002 name and private type
- Add elements to new version v002 of SERVIEC FRAME ntwkf001
Step 3 Add a SERVICE LINK between A and B and from B to A
- Modify private code of SCHEDULED STOP POINT Stop B v002
- Add these new elements to new version v003 of vSERVICE FRAME - ntwkf001
Step 4 Delete the SERVICE LINK back from B to A ,
- Modify private code of SCHEDULED STOP POINT Stop B v002
- Modify distance on SERVICE LINK A to B v002
- Add a new SCHEDULED STOP POINT stop C v001, a SERVICE LINK from B to C
- Add a new SERVICE PATTERN A-B-C v001
- Add these new elements to new version v004 of SERVICE FRAME - ntwkf001
Step 5 Modify the section call of the SERVICE PATTERN v002 to be alight only
- Update reference to elements to new version v005 of SERVICE FRAME - ntwkf001
(C) 2010 Crown Copyright CEN
-->
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:siri="http://www.siri.org.uk/siri" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://www.netex.org.uk/netex ../../../xsd/NeTEx_publication.xsd">
<PublicationTimestamp>2010-08-17T09:30:47.0Z</PublicationTimestamp>
<ParticipantRef>SYS001</ParticipantRef>
<PublicationRequest version="1.0">
<RequestTimestamp>2010-08-17T09:30:47.0Z</RequestTimestamp>
<ParticipantRef>SYS002</ParticipantRef>
<topics>
<NetworkFrameTopic>
<Current/>
<GeneralFrameRef ref="mynet:123">REQUEST</GeneralFrameRef>
</NetworkFrameTopic>
</topics>
</PublicationRequest>
<PublicationRefreshInterval>P7D</PublicationRefreshInterval>
<Description>Netex basic Versioning Example Step 05. Use a general frame rather than a newtork frame </Description>
<dataObjects>
<!--- =====NETWORK VERSION All========== -->
<GeneralFrame version="005" created="2010-05-17T09:30:47.0Z" changed="2010-05-22T10:30:51.0Z" modification="revise" derivedFromVersionRef="004" responsibilitySetRef="mybus:RS_10" id="mybus:ntwkf001">
<validityConditions>
<AvailabilityCondition created="2010-05-18T10:30:47.0Z" modification="revise" version="003" id="mybus:VC002_mf">
<Description>Use when no ice</Description>
<FromDate>2010-05-17T00:00:00Z</FromDate>
<ToDate>2011-05-17T00:00:00Z</ToDate>
<dayTypes>
<DayTypeRef version="001" ref="mybus:DT001_MF"/>
</dayTypes>
</AvailabilityCondition>
</validityConditions>
<Name>My Network Version 4 One link has been removed. Baseline is version 3 as Links needs exist</Name>
<!--- ======= CODESPACEs======== -->
<codespaces>
<Codespace id="mybus">
<Xmlns>mybus</Xmlns>
<XmlnsUrl>http://www.mybuses.eu/stuff</XmlnsUrl>
<Description>My buses</Description>
</Codespace>
</codespaces>
<!--- =======FRAME DEFAULTS======== -->
<FrameDefaults>
<DefaultCodespaceRef ref="mybus"/>
<DefaultResponsibilitySetRef ref="mybus:RS_10">EXTERNAL</DefaultResponsibilitySetRef>
</FrameDefaults>
<members modificationSet="all">
<!--- =====Data objects ========= -->
<ScheduledStopPoint version="002" created="2010-05-17T09:30:47.0Z" changed="2010-05-18T09:30:47.0Z" modification="revise" id="mybus:SSP0001A">
<privateCodes>
<PrivateCode>mycodeA</PrivateCode>
</privateCodes>
<Name>Haltstelle A - Museum</Name>
<Description>Version two of stop A. Name is Changed</Description>
</ScheduledStopPoint>
<ScheduledStopPoint version="002" created="2010-05-18T09:30:47.0Z" changed="2010-06-18T09:30:47.0Z" modification="revise" id="mybus:SSP0002B">
<privateCodes>
<PrivateCode>mycodeB</PrivateCode>
</privateCodes>
<Name>Haltstelle B</Name>
<Description>Version two of stop B</Description>
</ScheduledStopPoint>
<ScheduledStopPoint version="001" created="2010-05-21T10:30:51.0Z" id="mybus:SSP0003C">
<Name>Haltstelle C</Name>
<Description>Version one of stop C</Description>
</ScheduledStopPoint>
<ServiceLink version="002" created="2010-05-19T10:30:47.0Z" changed="2010-05-19T10:30:47.0Z" modification="revise" id="mybu:SL_AtoB01">
<Name>Version one of Link from A to B</Name>
<Distance>1.12</Distance>
<FromPointRef version="002" ref="mybus:SSP0001A"/>
<ToPointRef version="002" ref="mybus:SSP0002B"/>
</ServiceLink>
<ServiceLink version="001" created="2010-05-21T10:30:51.0Z" modification="new" id="mybu:SL_BtoC01">
<Name>Version one of Link from B to C</Name>
<Distance>1.25</Distance>
<FromPointRef version="002" ref="mybus:SSP0002B"/>
<ToPointRef version="001" ref="mybus:SSP0003C"/>
</ServiceLink>
<ServicePattern version="002" created="2010-05-21T10:30:51.0Z" changed="2010-05-22T10:30:51.0Z" modification="new" id="mybus:SP001">
<Name>From A to D, version 2</Name>
<pointsInSequence>
<StopPointInJourneyPattern version="002" id="mybus:P001_01" order="1">
<ScheduledStopPointRef version="002" ref="mybus:SSP0001A"/>
</StopPointInJourneyPattern>
<StopPointInJourneyPattern version="002" id="mybus:P001_02" order="2">
<ScheduledStopPointRef version="002" ref="mybus:SSP0002B"/>
<ForAlighting>true</ForAlighting>
<ForBoarding>false</ForBoarding>
</StopPointInJourneyPattern>
<StopPointInJourneyPattern version="001" id="mybus:P001_03" order="3">
<ScheduledStopPointRef version="001" ref="mybus:SSP0003C"/>
</StopPointInJourneyPattern>
</pointsInSequence>
</ServicePattern>
<DayType version="001" created="2010-05-18T10:30:47.0Z" id="mybus:DT001_MF">
<Name>Monday to Friday</Name>
<properties>
<PropertyOfDay>
<DaysOfWeek>Monday Tuesday Wednesday Thursday Friday</DaysOfWeek>
<HolidayTypes>WorkingDay</HolidayTypes>
</PropertyOfDay>
</properties>
</DayType>
</members>
</GeneralFrame>
</dataObjects>
</PublicationDelivery>