Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A CODESPACE is similar to the XML concept of aNamespace that gives a context within which the names of elements and attributes in an XML schema shall unique, (using the generic W3C domain mechanism), thus permitting the combining of elements from different schemas in the same aggregated model. In a similar way, NeTEx uses Codespaces to ensure that the identifiers of instances of elements in an XML document are unique, even if they come from many different systems and are placed in the same document – see examples below. This allows data elements from different countries, different regions, and different organisations to be combined without clashes.

(2)   Codespace – XML Element

Classification

Name

Type

Cardinality

Description

::>

::>

Entity

::>

CODESPACE inherits from ENTITY.

«PK»

id

CodespaceIdType

1:1

Identifier of CODESPACE. Unique within documents.

«AK»

Xmlns

xsd:NMTOKEN

1:1

CODESPACE prefix, unique within a given XML document e.g. 'napt'

XmlnsUrl

xsd:anyURI

0:1

CODESPACE path. Globally unique. For example,

http://naptan.org.uk/naptan or http:/vdv.de/vdv/haltstelle/

Description

xsd:string

0:1

Description of CODESPACE.

...