Raymond,

One comment...

Raymond Feng wrote:
Another issue: setting the @minOccurs to "1" for sca:implementation element ref in sca:ComponentType is probably too much. It makes most of the component type files we have in Tuscany no more conforming. I'm not sure why the implemention element is there in the componentType in the first place.

The reason it is there is that the implementation can carry specific policy annotations like intents and it was felt that it was better to introduce an explicit implementation element for that rather than having to transfer such items to the <componentType/> element itself, which might become a problem where the implementation has extensions...


  <element name="componentType" type="sca:ComponentType"/>
  <complexType name="ComponentType">
     <complexContent>
        <extension base="sca:CommonExtensionBase">
           <sequence>
              <element ref="sca:implementation" minOccurs="1"/>
...

Thanks,
Raymond


I agree that it is all a bit of a pain.


Yours,  Mike.

Reply via email to