|
|
TransXChange Versions |
Related UK Standards
Related EU Standards
|
TransXChange uses a systematic versioning scheme in line with GovTalk & e-Gif standards. The system is intended to allow you to design applications that operate at different schema levels concurrently, and to manage future schema application evolution in a rigourous and orderly manner. Both schemas & instance documents are versioned. The schema version level required to process any given TransXChange document can therefore be identified. There are separate versions of the Publisher for each version of the Schema. 1. Version Numbering1.1 Version NumbersAll TransXChange schemas are have a version Identifier of the form N.Ma, where:
2. Version Location2.1 Schema versionsTransXChange schema versions are always located at a specific, versioned URL. The URL has the general form:
Examples of VersioningDraft c of Version 2.0 of TransXChange registration schema: Version 2.1 of TransXChange registration schema:
2.2 Namespace versionsNote that the namespace used for TransXChange is not itself versioned, in line with GovTalk & e-Gif standards, thus: <xs:schema targetNamespace="http://www.transxchange.org.uk/schema/schemas.htm"
In version 2.0 and 2.1 because of technical constraints in earlier XML tools, TXC uses chameleon namespaces for imported packages. These will be revised in future. 2.3 Directory StructureTransXChange artefacts are organised into a hierarchical directory structure relative to the root domain, in accordance with the e-Gif versioning system. For example the directory structure used is as follows: //www.transxchange.org.uk/ //www.transxchange.org.uk/schema/ ... //www.transxchange.org.uk/schema/2.0/ //www.transxchange.org.uk/schema/2.0/TransXChange_general.xsd //www.transxchange.org.uk/schema/2.0/TransXChange_registration.xsd //www.transxchange.org.uk/schema/2.0/TransXChange_common.xsd //www.transxchange.org.uk/schema/2.0/TransXChange_types.xsd //www.transxchange.org.uk/schema/2.0/xml/xml.xsd //www.transxchange.org.uk/schema/2.0/napt/NaPT_stop-v1-0c.xsd //www.transxchange.org.uk/schema/2.0/napt/NaPT_common-v1-0c.xsd //www.transxchange.org.uk/schema/2.0/napt/NaPT_dates-v1-0c.xsd //www.transxchange.org.uk/schema/2.0/napt/NaPT_geographic-v1-0c.xsd //www.transxchange.org.uk/schema/2.0/napt/NaPT_journey-v1-0c.xsd //www.transxchange.org.uk/schema/2.0/napt/NaPT_topography-v1-0c.xsd //www.transxchange.org.uk/schema/2.0/napt/NaPT_organisation-v1-0c.xsd //www.transxchange.org.uk/schema/2.0/apd/PersonDescriptiveTypes-v1-0.xsd //www.transxchange.org.uk/schema/2.0/apd/AddressTypes-v1-3.xsd //www.transxchange.org.uk/schema/2.0/apd/BS7666-v1-3.xsd //www.transxchange.org.uk/schema/2.0/apd/CitizenIdentificationTypes-v1-3.xsd //www.transxchange.org.uk/schema/2.0/apd/CommonSimpleTypes-v1-3.xsd //www.transxchange.org.uk/schema/2.0/apd/ContactTypes-v1-3.xsd //www.transxchange.org.uk/schema/2.0/apd/PersonalDetailsTypes-v1-3.xsd //www.transxchange.org.uk/schema/2.0/guide/TransXChange_Guide_2.0e.zip //www.transxchange.org.uk/schema/2.0/examples/linear/linear.xml //www.transxchange.org.uk/schema/2.0/examples/linear/linear.png //www.transxchange.org.uk/schema/2.0/examples/interchange/interchange.xml .... 3. Version Identifiers3.1 Schema Version IdentifiersAll TransXChange schema versions have a formal version identifier in the header element: <xs:schema targetNamespace="http://www.transxchange.org.uk/schema/"
xmlns="http://www.transxchange.org.uk/schema/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="2.0"
id="TransXChange">
...
3.2 Document Version IdentifiersAll TransXChange instance documents have a version identifier which must be populated by the implementation to indicate the schema level against which the document validates. <?xml version="1.0" encoding="UTF-8"?>
<TransXChange
xmlns="http://www.transxchange.org.uk/schema/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.transxchange.org.uk/schema/2.0/
Version="2.0">
<Request/>
...
<Request/>
</TransXChange>
3.3 Package versionsLow level subschemas shared with other schemas and referenced by TransXChange are individually versioned within a subdirectory, for example /napt and /apd. Copies of the referenced subschemas are included in the download so that the schemas can be used offline. For example: //www.transxchange.org.uk/schema/2.0/napt/NaPT_stop-v2-0.xsd |
![]() |
© Crown Copyright 2006-7 |