Changes between Version 13 and Version 14 of CMDI 1.2/Specification/TransformationCCSLSchema


Ignore:
Timestamp:
11/12/15 14:26:27 (8 years ago)
Author:
Twan Goosen
Comment:

section levels

Legend:

Unmodified
Added
Removed
Modified
  • CMDI 1.2/Specification/TransformationCCSLSchema

    v13 v14  
    1 == Transformation of CCSL into a CMD profile schema definition ==
     1= Transformation of CCSL into a CMD profile schema definition =
    22
    33A CMD instance document that is serialised as XML according this specification `SHOULD` contain a reference the location of a CMD profile schema. The infrastructure `MUST` provide a mechanism to derive such a schema for any specific CMD profile on basis of its definition and that of the CMD components that it references. This section specifies how different aspects of a CMD specification should be transformed into elements of a schema definition. The primary schema language targeted is XML Schema, although the infrastructure `MAY` provide support for other schema languages, such as DDML or Relax NG.
     
    66The transformation as described here is assumed to take place on the fully expanded CMD profile, i.e. a version of the specification that has all referenced (non-inline) CMD Component definitions are resolved and substituted, recursively, by their full definitions.
    77
    8 === General properties of the CMD profile schema definition ===
     8== General properties of the CMD profile schema definition ==
    99
    1010A CMD profile schema `MUST` be a single document {or set of linked documents with a single entry point}(?) that allows for the evaluation of a CMD instance on all levels of description defined in one specific CMD profile.
     
    1515The transformation `MAY` make use of embedded component identifiers in the CMD component definition to derive (complex) types that can be reused throughout the schema definition.
    1616
    17 === Interpretation of CMD component definitions in the CCSL ===
     17== Interpretation of CMD component definitions in the CCSL ==
    1818CMD Components which are represented as `<Component>` XML elements in the CCSL, `MUST` be realised as XML element declarations with the following property mapping:
    1919
     
    3232XML attributes of CMD Components in the 'cue' namespace `SHOULD` be copied into the XML element declaration, in which case the XML attribute name, namespace and value `SHOULD` be preserved.
    3333
    34 ==== Document structure prescribed by the schema ====
     34=== Document structure prescribed by the schema ===
    3535
    3636The first CMD component defined in the CMD profile (the "root component") `MUST` be mapped as the mandatory, only direct descendant of the `<Components>` XML element of the CMD instance envelope.
     
    4141CMD attributes that are defined in the CCSL within "Attribute" XML elements within an "AttributeList" XML element that is a direct descendant of a CMD Component MUST be mapped to XML attribute definitions on the XML container element to which it is transformed.
    4242
    43 === Interpretation of CMD element definitions in the CCSL ===
     43== Interpretation of CMD element definitions in the CCSL ==
    4444CMD elements, represented as `<Element>` XML elements in the CCSL, `MUST` be realised as XML element declarations with the following property mapping:
    4545
     
    6161The derivation of a content model for the XML element declaration on basis of a CMD element is described below.
    6262
    63 === Interpretation of CMD attribute definitions in the CCSL ===
     63== Interpretation of CMD attribute definitions in the CCSL ==
    6464CMD attributes, represented as `<Attribute>` XML elements in the CCSL, `MUST` be realised as XML attribute declarations with the following property mapping:
    6565
     
    7878The derivation of a content model for the XML attribute declaration on basis of a CMD attribute is described below.
    7979
    80 === Content model for CMD elements and CMD attributes in the schema definition ===
     80== Content model for CMD elements and CMD attributes in the schema definition ==
    8181If a CMD element or CMD attribute in the CCSL has a `@ValueScheme` XML attribute, its value `MUST` be interpreted as the name of the XML Schema Datatype (declared in the `@type` attribute of the XML element or attribute declaration in XML Schema) that defines the allowed value range of the XML element/attribute derived from the CMD element/attribute.
    8282