Changes between Version 13 and Version 14 of CMDI 1.2/Specification/TransformationCCSLSchema
- Timestamp:
- 11/12/15 14:26:27 (8 years ago)
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 = 2 2 3 3 A 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. … … 6 6 The 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. 7 7 8 == = General properties of the CMD profile schema definition ===8 == General properties of the CMD profile schema definition == 9 9 10 10 A 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. … … 15 15 The 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. 16 16 17 == = Interpretation of CMD component definitions in the CCSL ===17 == Interpretation of CMD component definitions in the CCSL == 18 18 CMD Components which are represented as `<Component>` XML elements in the CCSL, `MUST` be realised as XML element declarations with the following property mapping: 19 19 … … 32 32 XML 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. 33 33 34 === = Document structure prescribed by the schema ====34 === Document structure prescribed by the schema === 35 35 36 36 The 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. … … 41 41 CMD 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. 42 42 43 == = Interpretation of CMD element definitions in the CCSL ===43 == Interpretation of CMD element definitions in the CCSL == 44 44 CMD elements, represented as `<Element>` XML elements in the CCSL, `MUST` be realised as XML element declarations with the following property mapping: 45 45 … … 61 61 The derivation of a content model for the XML element declaration on basis of a CMD element is described below. 62 62 63 == = Interpretation of CMD attribute definitions in the CCSL ===63 == Interpretation of CMD attribute definitions in the CCSL == 64 64 CMD attributes, represented as `<Attribute>` XML elements in the CCSL, `MUST` be realised as XML attribute declarations with the following property mapping: 65 65 … … 78 78 The derivation of a content model for the XML attribute declaration on basis of a CMD attribute is described below. 79 79 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 == 81 81 If 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. 82 82