XMI 2.1 NO IDEA Avatar
  1. OMG Issue

XMI21 — Mandatory Extensions when enforceMinimumMultiplicity is true

  • Key: XMI21-8
  • Legacy Issue Number: 7306
  • Status: open  
  • Source: Zuehlke Engineering ( Frank Pilhofer)
  • Summary:

    My base document is the MOF 2 XMI Final Adopted Specification,
    ptc/03-11-04.

    There is an issue with rule 4c, part of the XML Schema Production rules,
    on page 46.

    If either org.omg.xmi.enforceMinimumMultiplicity or org.omg.xmi.enforce-
    MaximumMultiplicity is true, then rule 4 places the 4b:ClassContents in
    an xsd:sequence element – and subelements are then decorated with
    minOccurs and maxOccurs attributes.

    However, rule 4c still emits the constant element,
    <xsd:element ref='xmi:extension'/>

    Therefore, in this case, the extension element becomes mandatory, with
    an implicit multiplicity of 1..1. This needs to be changed to
    <xsd:element ref='xmi:extension' minOccurs='0' maxOccurs='unbounded'/>

  • Reported: XMI 2.0 — Thu, 6 May 2004 04:00 GMT
  • Updated: Wed, 11 Mar 2015 11:11 GMT