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] <composite/> <include/> element has the wrong type in sca-core.xsd



Raiser:                Mike Edwards

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

Description:

In sca-core.xsd, the <composite/> <include/> element has the type "anyURI".
This is incorrect.  It should be the SCA Include type which is defined in sca-core.xsd.

   <element name="composite" type="sca:Composite"/>
   <complexType name="Composite">
      <complexContent>
         <extension base="sca:CommonExtensionBase">
            <sequence>
               <element name="include" type="anyURI" minOccurs="0"
                        maxOccurs="unbounded"/>
               <choice minOccurs="0" maxOccurs="unbounded">
                  <element name="service" type="sca:Service"/>
                  <element name="property" type="sca:Property"/>
                  <element name="component" type="sca:Component"/>
                  <element name="reference" type="sca:Reference"/>
                  <element name="wire" type="sca:Wire"/>
               </choice>
               <any namespace="##other" processContents="lax" minOccurs="0"
                    maxOccurs="unbounded"/>
            </sequence>
            <attribute name="name" type="NCName" use="required"/>
            <attribute name="targetNamespace" type="anyURI" use="required"/>
            <attribute name="local" type="boolean" use="optional"
                       default="false"/>
            <attribute name="autowire" type="boolean" use="optional"
                       default="false"/>
            <attribute name="constrainingType" type="QName" use="optional"/>
            <attribute name="requires" type="sca:listOfQNames"
                       use="optional"/>
            <attribute name="policySets" type="sca:listOfQNames"
                       use="optional"/>
         </extension>
      </complexContent>
   </complexType>

Proposal:

Change the declaration of the <composite/> <include/> element to use the sca:Include type, as follows:

   <element name="composite" type="sca:Composite"/>
   <complexType name="Composite">
      <complexContent>
         <extension base="sca:CommonExtensionBase">
            <sequence>
               <element name="include" type="sca:Include" minOccurs="0"
                        maxOccurs="unbounded"/>
               <choice minOccurs="0" maxOccurs="unbounded">
                  <element name="service" type="sca:Service"/>
                  <element name="property" type="sca:Property"/>
                  <element name="component" type="sca:Component"/>
                  <element name="reference" type="sca:Reference"/>
                  <element name="wire" type="sca:Wire"/>
               </choice>
               <any namespace="##other" processContents="lax" minOccurs="0"
                    maxOccurs="unbounded"/>
            </sequence>
            <attribute name="name" type="NCName" use="required"/>
            <attribute name="targetNamespace" type="anyURI" use="required"/>
            <attribute name="local" type="boolean" use="optional"
                       default="false"/>
            <attribute name="autowire" type="boolean" use="optional"
                       default="false"/>
            <attribute name="constrainingType" type="QName" use="optional"/>
            <attribute name="requires" type="sca:listOfQNames"
                       use="optional"/>
            <attribute name="policySets" type="sca:listOfQNames"
                       use="optional"/>
         </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]