-
Key: UCM11-6
-
Status: closed
-
Source: THALES ( Thomas Vergnaud)
-
Summary:
UCM 1.0 defines an XML schema, which is sufficient to validate file structures.
However, XML provides a nice feature: entities. Entities allow automatic string substitution. Some of them are standard. For example: , ", >As UCM relies on absolute names to reference elements, XML files can become verbose:
<policyDef applicability="on_component_only" aspect="::core::comp_exec::comp_trig_asp" extends="::core::comp_exec::self_exec_comp" name="prdc_self_exec_comp"> <configParam name="psec_period" type="::core::basic_svc::clock::api::ucm_timeval_t"/> <configParam name="psec_priority" type="contracts::priority_t"/> <configParam name="psec_offset" type="::core::basic_svc::clock::api::ucm_timeval_t"/> </policyDef>
It would be nice to be able to write instead:
<policyDef applicability="on_component_only" aspect="&ce;::comp_trig_asp" extends="&ce;::self_exec_comp" name="prdc_self_exec_comp"> <configParam name="psec_period" type="&ucm_timeval_t;"/> <configParam name="psec_priority" type="contracts::priority_t"/> <configParam name="psec_offset" type="&ucm_timeval_t;"/> </policyDef>
XML entities require the specification of a DTD.
-
Reported: UCM 1.0b2 — Mon, 23 Oct 2017 15:39 GMT
-
Disposition: Resolved — UCM 1.1
-
Disposition Summary:
provide a new XML schema and DTD
replace ptc/17-05-07 with ucm_base.dtd and ucm_base.xsd
-
Updated: Wed, 3 Oct 2018 14:18 GMT
-
Attachments:
- ucm_base.dtd 13 kB (application/xml-dtd)
- ucm_base.xsd 39 kB (text/xml)