Changes between Version 5 and Version 6 of CMDI 1.2/Specification/TransformationCCSLSchema
- Timestamp:
- 11/12/15 09:36:19 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMDI 1.2/Specification/TransformationCCSLSchema
v5 v6 16 16 17 17 === Interpretation of CMD component definitions in the CCSL === 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: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 20 20 ||= Property =||= XML schema attribute =||= Derived from =||= Use =|| 21 21 || Name of the XML element || `@name` || `@name` || `REQUIRED` || 22 || Minimal number of occurrences || `@minOccurs` || `@CardinalityMin` '''unless''' `@Multilingual` is true,\\in which case MUST be 'unbounded',\\or '1' if neither XML attribute is present || `REQUIRED` ^[#note1 1]^ ||23 || Maximal number of occurrences || `@maxOccurs` || `@CardinalityMax`, or '1' if XML attribute not present || `REQUIRED` ^[# note1 1]^ ||22 || Minimal number of occurrences || `@minOccurs` || `@CardinalityMin`, or '1' if XML attribute not present || `REQUIRED` ^[#ioccditc-note1 1]^ || 23 || Maximal number of occurrences || `@maxOccurs` || `@CardinalityMax`, or '1' if XML attribute not present || `REQUIRED` ^[#ioccditc-note1 1]^ || 24 24 || Concept link || `@dcr:datcat` || `@ConceptLink` || `OPTIONAL` || 25 25 || Component id || `@cmd:ComponentId` || `@ComponentId` || `OPTIONAL` || 26 ^[=# note1 1]^The implementation may make use of default evaluation of the schema language if it matches these requirements, as is the case with XML Schema, and therefore omit explicit declaration of these properties26 ^[=#ioccditc-note1 1]^The implementation may make use of default evaluation of the schema language if it matches these requirements, as is the case with XML Schema, and therefore omit explicit declaration of these properties 27 27 28 28 An optional XML Attribute `@cmd:ref` of type ''xs:IDREFS'' `MUST` be allowed on the XML container element derived from any CMD component. 29 29 30 `<Documentation>` XML elements contained in CMD Components `MAY` be transformed into documentation XMLelements embedded in the XML element declaration. In these, the content language information contained in the `@xml:lang` XML attribute `SHOULD` be preserved.30 `<Documentation>` XML elements contained in CMD Components `MAY` be transformed into documentation elements embedded in the XML element declaration. In these, the content language information contained in the `@xml:lang` XML attribute `SHOULD` be preserved. 31 31 32 32 {{{#!comment … … 40 40 CMD components that are defined as direct descendants of another CMD component `MUST` be mapped as direct descendants of the XML element declaration to which it is transformed. XML components at the CMD component level in the metadata instance `MUST` be required to be included in the same order as defined in the CMD specification, the first of the resulting XML elements appearing after the last XML element derived from a CMD element at the same level, if present. These descendant CMD Components `MUST` also be mapped to XML element declarations recursively as described in this specification. 41 41 42 CMD elements `MUST` be mapped as direct descendants of the XML element declaration derived from the CMD component of which they are direct descendants, and `MUST` be required to be included in the same order as defined in the CMD specification. 43 44 === Interpretation of CMD element definitions in the CCSL === 45 CMD elements, represented as `<Element>` XML elements in the CCSL, `MUST` be realised as XML element declarations with the following property mapping: 46 47 ||= Property =||= XML schema attribute =||= Derived from =||= Use =|| 48 || Name of the XML element || `@name` || `@name` || `REQUIRED` || 49 || Minimal number of occurrences || `@minOccurs` || `@CardinalityMin` '''unless''' `@Multilingual` is true,\\in which case MUST be 'unbounded',\\or '1' if neither XML attribute is present || `REQUIRED` ^[#ioceditc-note1 1]^ || 50 || Maximal number of occurrences || `@maxOccurs` || `@CardinalityMax`, or '1' if XML attribute not present || `REQUIRED` ^[#ioceditc-note1 1]^ || 51 || Concept link || `@dcr:datcat` || `@ConceptLink` || `OPTIONAL` || 52 {{{#!comment 53 TODO 54 - [ ] AutoValue 55 }}} 56 ^[=#ioceditc-note1 1]^The implementation may make use of default evaluation of the schema language if it matches these requirements, as is the case with XML Schema, and therefore omit explicit declaration of these properties 57 58 `<Documentation>` XML elements contained in CMD elements `MAY` be transformed into documentation elements embedded in the XML element declaration In these, the content language information contained in the `@xml:lang` XML attribute `SHOULD` be preserved. 59 60 {{{#!comment 61 TODO 62 - [ ] display cues (all attributes in cue namespace should be copied) 63 }}} 64 65 The derivation of a content model for the XML element declaration on basis of a CMD element is described below.