Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
C++-SCA-Next
-
None
Description
In sca-core.xsd, in Component, the cardinality of <implementation> should be 1..1.
I will bring this issue to the OSOA spec workgroup.
The SCA assembly spec specifies it correctly (page 6 in v0.95):
<component name="xs:NCName">*
<implementation/>
<property name="xs:NCName" source="sca:Property"?>*
property-value
</property>
<reference name="xs:NCName"/>*
wire-target-URI
</reference>
</component>
In sca-core.xsd
<complexType name="Component">
<sequence>
<element ref="sca:implementation" minOccurs="0" maxOccurs="1"/>
<element name="reference" type="sca:ReferenceValue" minOccurs="0" maxOccurs="unbounded"/>
<element name="property" type="sca:Property" minOccurs="0" maxOccurs="unbounded"/>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" type="NCName" use="required"/>
<anyAttribute namespace="##any" processContents="lax"/>
</complexType>
should be changed to:
<complexType name="Component">
<sequence>
<element ref="sca:implementation" minOccurs="1" maxOccurs="1"/>
<element name="reference" type="sca:ReferenceValue" minOccurs="0" maxOccurs="unbounded"/>
<element name="property" type="sca:Property" minOccurs="0" maxOccurs="unbounded"/>
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" type="NCName" use="required"/>
<anyAttribute namespace="##any" processContents="lax"/>
</complexType>