You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Michael Yoder (JIRA)" <tu...@ws.apache.org> on 2007/07/17 02:57:04 UTC

[jira] Created: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

sample composite files are invalid instance documents against SCA schema types
------------------------------------------------------------------------------

                 Key: TUSCANY-1443
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
             Project: Tuscany
          Issue Type: Bug
         Environment: all
            Reporter: Michael Yoder


The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)

<component name="AccountServiceComponent">
 .....    
  <property name="currency">EURO</property>
</component>  

When the XML Schema type does not allow mixed or simple content:

    <complexType name="PropertyType">
        <complexContent>
            <extension base="anyType">
                <attribute name="name" type="NCName" use="required" />
                <attribute name="type" type="QName" use="required" />
                <attribute name="many" type="boolean" default="false" use="optional" />
                <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
                <anyAttribute namespace="##any" processContents="lax" />
            </extension>
        </complexContent>
    </complexType>

The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:

<component name="AccountServiceComponent">
 .....    
  <property name="currency" value="EURO"/>
</component>  




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: [jira] Commented: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

Posted by Pete Robbins <ro...@googlemail.com>.
Tuscany cpp was being developed iat the same time as the specification
so it does not quite match the 0.96 spec... or the 1.0 spec.

We need to work now to move everything to 1.0 level of spec.

... and yes the schema and instance docs are not valid. Thanks for
raising this issue. I'll fix up the docs as per the .96 spec asap.

Cheers,


On 17/07/07, Michael Yoder (JIRA) <tu...@ws.apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/TUSCANY-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513292 ]
>
> Michael Yoder commented on TUSCANY-1443:
> ----------------------------------------
>
> I see. If SCA CPP is currently 0.96 then the samples instance docs should be modified to be valid with the schemas in Tuscany source control. When  SCA CPP moves to 1.0, then both the schemas and instance docs can be updated.
>
> Either way the issue is the instance docs are invalid with the schemas currently used by SCA CPP.
>
> > sample composite files are invalid instance documents against SCA schema types
> > ------------------------------------------------------------------------------
> >
> >                 Key: TUSCANY-1443
> >                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
> >             Project: Tuscany
> >          Issue Type: Bug
> >         Environment: all
> >            Reporter: Michael Yoder
> >
> > The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)
> > <component name="AccountServiceComponent">
> >  .....
> >   <property name="currency">EURO</property>
> > </component>
> > When the XML Schema type does not allow mixed or simple content:
> >     <complexType name="PropertyType">
> >         <complexContent>
> >             <extension base="anyType">
> >                 <attribute name="name" type="NCName" use="required" />
> >                 <attribute name="type" type="QName" use="required" />
> >                 <attribute name="many" type="boolean" default="false" use="optional" />
> >                 <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
> >                 <anyAttribute namespace="##any" processContents="lax" />
> >             </extension>
> >         </complexContent>
> >     </complexType>
> > The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:
> > <component name="AccountServiceComponent">
> >  .....
> >   <property name="currency" value="EURO"/>
> > </component>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

Posted by "Mike Edwards (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513257 ] 

Mike Edwards commented on TUSCANY-1443:
---------------------------------------

Umm, which SCA XSDs are you referencing here?

The correct ones are in the SCA Assembly spec document here:

http://www.osoa.org/download/attachments/35/SCA_AssemblyModel_V100.pdf

and they are also available directly on the web at their indicated locations, eg:

http://www.osoa.org/xmlns/sca/1.0

In those, the definition of SCA Property type goes like this:

    <complexType name="SCAPropertyBase" mixed="true">
    	<!-- mixed="true" to handle simple type -->
    	<sequence>
    		<any namespace="##any" processContents="lax" minOccurs="0"
    			maxOccurs="1" />
    		<!-- NOT an extension point; This xsd:any exists to accept
    			 the element-based or complex type property
    			 i.e. no element-based extension point under "sca:property" -->
    	</sequence>
    </complexType>

    <!-- complex type for sca:property declaration --> 
    <complexType name="Property" mixed="true">
       <complexContent>
	       <extension base="sca:SCAPropertyBase">  
	          <!-- extension defines the place to hold default value --> 
	          <attribute name="name" type="NCName" use="required"/>
	          <attribute name="type" type="QName" use="optional"/> 
	          <attribute name="element" type="QName" use="optional"/>
	          <attribute name="many" type="boolean" default="false" 
	          	use="optional"/>
	          <attribute name="mustSupply" type="boolean" default="false" 
	          	use="optional"/>
	          <anyAttribute namespace="##any" processContents="lax"/>
	          <!-- an extension point ; attribute-based only --> 
	       </extension>
       </complexContent> 
    </complexType>

...which I believe covers the usage described for the property in the composite document which you reference.

Now, there is a problem with the XSDs within the cpp Project, but it isn't the one you've raised.  Actually, the ones in the cpp project look to be out of date and need to be replaced wholesale with the ones from www.osoa.org.


Yours,  Mike.

> sample composite files are invalid instance documents against SCA schema types
> ------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1443
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
>             Project: Tuscany
>          Issue Type: Bug
>         Environment: all
>            Reporter: Michael Yoder
>
> The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency">EURO</property>
> </component>  
> When the XML Schema type does not allow mixed or simple content:
>     <complexType name="PropertyType">
>         <complexContent>
>             <extension base="anyType">
>                 <attribute name="name" type="NCName" use="required" />
>                 <attribute name="type" type="QName" use="required" />
>                 <attribute name="many" type="boolean" default="false" use="optional" />
>                 <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
>                 <anyAttribute namespace="##any" processContents="lax" />
>             </extension>
>         </complexContent>
>     </complexType>
> The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency" value="EURO"/>
> </component>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

Posted by "Michael Yoder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513292 ] 

Michael Yoder commented on TUSCANY-1443:
----------------------------------------

I see. If SCA CPP is currently 0.96 then the samples instance docs should be modified to be valid with the schemas in Tuscany source control. When  SCA CPP moves to 1.0, then both the schemas and instance docs can be updated. 

Either way the issue is the instance docs are invalid with the schemas currently used by SCA CPP.

> sample composite files are invalid instance documents against SCA schema types
> ------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1443
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
>             Project: Tuscany
>          Issue Type: Bug
>         Environment: all
>            Reporter: Michael Yoder
>
> The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency">EURO</property>
> </component>  
> When the XML Schema type does not allow mixed or simple content:
>     <complexType name="PropertyType">
>         <complexContent>
>             <extension base="anyType">
>                 <attribute name="name" type="NCName" use="required" />
>                 <attribute name="type" type="QName" use="required" />
>                 <attribute name="many" type="boolean" default="false" use="optional" />
>                 <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
>                 <anyAttribute namespace="##any" processContents="lax" />
>             </extension>
>         </complexContent>
>     </complexType>
> The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency" value="EURO"/>
> </component>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

Posted by "Michael Yoder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513279 ] 

Michael Yoder commented on TUSCANY-1443:
----------------------------------------

Thanks Mike! Yes, I was looking at the schemas in Tuscany source control. It looks like updating the schemas in Tuscany should address this issue (will make the instance docs valid).

Michael Yoder
Rogue Wave Software - yoder@roguewave.com Software Developer - HydraSDO


> sample composite files are invalid instance documents against SCA schema types
> ------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1443
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
>             Project: Tuscany
>          Issue Type: Bug
>         Environment: all
>            Reporter: Michael Yoder
>
> The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency">EURO</property>
> </component>  
> When the XML Schema type does not allow mixed or simple content:
>     <complexType name="PropertyType">
>         <complexContent>
>             <extension base="anyType">
>                 <attribute name="name" type="NCName" use="required" />
>                 <attribute name="type" type="QName" use="required" />
>                 <attribute name="many" type="boolean" default="false" use="optional" />
>                 <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
>                 <anyAttribute namespace="##any" processContents="lax" />
>             </extension>
>         </complexContent>
>     </complexType>
> The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency" value="EURO"/>
> </component>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino updated TUSCANY-1443:
--------------------------------------------

    Component/s: C++ SCA

> sample composite files are invalid instance documents against SCA schema types
> ------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1443
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SCA
>         Environment: all
>            Reporter: Michael Yoder
>
> The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency">EURO</property>
> </component>  
> When the XML Schema type does not allow mixed or simple content:
>     <complexType name="PropertyType">
>         <complexContent>
>             <extension base="anyType">
>                 <attribute name="name" type="NCName" use="required" />
>                 <attribute name="type" type="QName" use="required" />
>                 <attribute name="many" type="boolean" default="false" use="optional" />
>                 <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
>                 <anyAttribute namespace="##any" processContents="lax" />
>             </extension>
>         </complexContent>
>     </complexType>
> The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency" value="EURO"/>
> </component>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

Posted by "Mike Edwards (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Edwards reassigned TUSCANY-1443:
-------------------------------------

    Assignee: Mike Edwards

> sample composite files are invalid instance documents against SCA schema types
> ------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1443
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SCA
>         Environment: all
>            Reporter: Michael Yoder
>            Assignee: Mike Edwards
>
> The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency">EURO</property>
> </component>  
> When the XML Schema type does not allow mixed or simple content:
>     <complexType name="PropertyType">
>         <complexContent>
>             <extension base="anyType">
>                 <attribute name="name" type="NCName" use="required" />
>                 <attribute name="type" type="QName" use="required" />
>                 <attribute name="many" type="boolean" default="false" use="optional" />
>                 <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
>                 <anyAttribute namespace="##any" processContents="lax" />
>             </extension>
>         </complexContent>
>     </complexType>
> The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency" value="EURO"/>
> </component>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1443) sample composite files are invalid instance documents against SCA schema types

Posted by "Brady Johnson (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513290 ] 

Brady Johnson commented on TUSCANY-1443:
----------------------------------------

Mike,

TuscanySCA Native is using the SCA Assembly Model version 0.96, and you're referring to version 1.0.

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com


> sample composite files are invalid instance documents against SCA schema types
> ------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1443
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1443
>             Project: Tuscany
>          Issue Type: Bug
>         Environment: all
>            Reporter: Michael Yoder
>
> The SCA samples composite files are invalid against the SCA schemas. In a component element, the property element has content. e.g. (from CppBigBank)
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency">EURO</property>
> </component>  
> When the XML Schema type does not allow mixed or simple content:
>     <complexType name="PropertyType">
>         <complexContent>
>             <extension base="anyType">
>                 <attribute name="name" type="NCName" use="required" />
>                 <attribute name="type" type="QName" use="required" />
>                 <attribute name="many" type="boolean" default="false" use="optional" />
>                 <attribute name="override" type="sca:OverrideOptions" default="may" use="optional" />
>                 <anyAttribute namespace="##any" processContents="lax" />
>             </extension>
>         </complexContent>
>     </complexType>
> The type is open to additional attributes, so the instance documents can be made valid with simple changes like this:
> <component name="AccountServiceComponent">
>  .....    
>   <property name="currency" value="EURO"/>
> </component>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org