[
https://issues.apache.org/jira/browse/TUSCANY-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pete Robbins resolved TUSCANY-1238.
-----------------------------------
Resolution: Fixed
FIxed at revision 534152.
> SDO overlapping annonymous types clash
> --------------------------------------
>
> Key: TUSCANY-1238
> URL: https://issues.apache.org/jira/browse/TUSCANY-1238
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Environment: All
> Reporter: Simon Laws
> Fix For: Cpp-Next
>
>
> If I have the schema:
> <?xml version="1.0" encoding="UTF-8"?>
> <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace=" http://www.example.org/AnnonTypes"
> xmlns:tns="http://www.example.org/AnnonTypes"
> elementFormDefault="qualified">
>
> <element name="Top">
> <complexType>
> <sequence>
> <element name="ElementA">
> <complexType>
> <sequence>
> <element name="Overlapping">
> <complexType>
> <sequence>
> <element name="ValueA" type="string"/>
> </sequence>
> </complexType>
> </element>
> </sequence>
> </complexType>
> </element>
> <element name="ElementB">
> <complexType>
> <sequence>
> <element name="Overlapping">
> <complexType>
> <sequence>
> <element name="ValueB" type="string"/>
> </sequence>
> </complexType>
> </element>
> </sequence>
> </complexType>
> </element>
> </sequence>
> </complexType>
> </element>
> </schema>
> And the XML
> <?xml version="1.0" encoding="UTF-8"?>
> <tns:Top xmlns:tns="http://www.example.org/AnnonTypes "
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=" http://www.example.org/AnnonTypes
> AnnonTypes.xsd ">
> <tns:ElementA>
> <tns:Overlapping>
> <tns:ValueA>tns:ValueA</tns:ValueA>
> </tns:Overlapping>
> </tns:ElementA>
> <tns:ElementB>
> <tns:Overlapping>
> <tns:ValueB>tns:ValueB</tns:ValueB>
> </tns:Overlapping>
> </tns:ElementB>
> </tns:Top>
> C++ SDO will report undefined types because, in the case of annonymuos types,
> C++ SDO (and the spec) currently use the containing element name as the type
> name. In this case this results in two types with the same name and one
> replaces the other in the type model. In java the secon annonymous type would
> be called Overlapping1.
--
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]