OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [NEW ISSUE] A.11 sca-contribution.xsd incorrectly requires <deployable/> element



Raiser:                Mike Edwards        

Target:                sca-assembly-1.1-spec-cd03.pdf

Description:

In the sca-contribution.xsd, the declaration of the <contribution/> element has a sequence of subelements
starting with <deployable/>.  In the XSD, the declaration of <deployable/> has maxOccurs="unbounded" but
no minOccurs atribute, with the result that this element is a REQUIRED subelement (there must always be
one).

This contradicts the main text of the spec in Section 12 and also the pseudo-schema, which indicates that
the <deployable/> element is optional.  It is necessary for the <deployable/> element to be missing for
cases of contributions that are not in themselves deployable, but which provide artifacts for other
contributions to use.

   <!-- Contribution -->
   <element name="contribution" type="sca:ContributionType"/>
   <complexType name="ContributionType">
      <complexContent>
         <extension base="sca:CommonExtensionBase">
            <sequence>
               <element name="deployable" type="sca:DeployableType"
                        maxOccurs="unbounded"/>
               <element ref="sca:importBase" minOccurs="0"
                        maxOccurs="unbounded"/>
               <element ref="sca:exportBase" minOccurs="0"
                        maxOccurs="unbounded"/>
               <any namespace="##other" processContents="lax" minOccurs="0"
                        maxOccurs="unbounded"/>
            </sequence>
         </extension>
      </complexContent>
   </complexType>

Proposal:

Add a minOccurs="0" attribute to the declaration of the <deployable/> element:

   <!-- Contribution -->
   <element name="contribution" type="sca:ContributionType"/>
   <complexType name="ContributionType">
      <complexContent>
         <extension base="sca:CommonExtensionBase">
            <sequence>
               <element name="deployable" type="sca:DeployableType"
                        minOccurs="0" maxOccurs="unbounded"/>
               <element ref="sca:importBase" minOccurs="0"
                        maxOccurs="unbounded"/>
               <element ref="sca:exportBase" minOccurs="0"
                        maxOccurs="unbounded"/>
               <any namespace="##other" processContents="lax" minOccurs="0"
                        maxOccurs="unbounded"/>
            </sequence>
         </extension>
      </complexContent>
   </complexType>



Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  
Email:  mike_edwards@uk.ibm.com





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]