In sca-core.xsd, Wire still allows for both URIs and EPRs.
----------------------------------------------------------

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


In sca-core.xsd, Wire can contain both URIs (xsd:anyURI) and EPRs (defined as 
xsd:anyType).

The SCA assembly spec level 0.95 does not mention EPRs anywhere. Either EPRs 
are supported as source and target of a Wire and this should be described in 
the spec and  IMO supported as well on references, or EPRs are not supported 
and the XSD should be changed to reflect that.

I will bring this issue to the OSOA spec workgroup.

Assuming that EPRs are not supported we can simplify the XSD and change this:

    <element name="source" type="anyType"/>
    <element name="target" type="anyType"/>
    
    <element name="source.uri" type="anyURI" substitutionGroup="sca:source"/>
    <element name="target.uri" type="anyURI" substitutionGroup="sca:target"/>

    <complexType name="Wire">
        <sequence>
            <element ref="sca:source" minOccurs="1" maxOccurs="1"/>
            <element ref="sca:target" minOccurs="1" maxOccurs="1"/>
            <any namespace="##other" processContents="lax" minOccurs="0" 
maxOccurs="unbounded"/>
        </sequence>
    </complexType>

    <element name="source.epr" type="anyType" substitutionGroup="sca:source"/>
    <element name="target.epr" type="anyType" substitutionGroup="sca:target"/>

To the following (much simpler):

    <complexType name="Wire">
        <sequence>
            <element name="source" type="anyURI" minOccurs="1" maxOccurs="1" />
            <element name="target" type="anyURI" minOccurs="1" maxOccurs="1" />
            <any namespace="##other" processContents="lax" minOccurs="0" 
maxOccurs="unbounded" />
        </sequence>
        <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