Hi,

The SCA composite file can reference user XSDs to specify the property type or 
element. For example,


<property name="p1" type="ns1:CustomerType" xmlns:ns1="http://customer";>
        <value xsi:type="ns1:CustomerType">
                <ns1:name>Ray</ns1:name>
                <ns1:id>001</ns1:id>
        </value>
</property>


<property name="p1" element="ns1:customer" xmlns:ns1="http://customer";>
        <ns1:customer>
                <ns1:name>Ray</ns1:name>
                <ns1:id>001</ns1:id>
        </ns1:customer>
</property>
 
The XSD for the customer is from the user application (could be packaged into 
the SCA contribution). Tuscany's schema validation against this composite fails 
as it
doesn't have knowledge of the user XSDs.

Should we validate the XML "foreign" to the SCA/Tuscany system XSDs? If yes, I 
guess the composite needs to have xsi:schemaLocation to provide the user XSDs. 
If not,
how can we fix the code to ignore the "foreign" XML elements/attributes/QNames?

Thanks,
Raymond
________________________________________________________________ 
Raymond Feng
[email protected]
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________

Reply via email to