In sca-core.xsd, in Component, the cardinality of <implementation> should be 
1..1
---------------------------------------------------------------------------------

                 Key: TUSCANY-633
                 URL: http://issues.apache.org/jira/browse/TUSCANY-633
             Project: Tuscany
          Issue Type: Bug
          Components: Specification
    Affects Versions: Cpp-current
            Reporter: Jean-Sebastien Delfino
         Assigned To: Jean-Sebastien Delfino


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>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to