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) <[email protected]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to