You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Matthew Peters (JIRA)" <tu...@ws.apache.org> on 2007/08/21 15:13:30 UTC
[jira] Created: (TUSCANY-1566) Element coming out in the wrong
namespace
Element coming out in the wrong namespace
-----------------------------------------
Key: TUSCANY-1566
URL: https://issues.apache.org/jira/browse/TUSCANY-1566
Project: Tuscany
Issue Type: Bug
Components: C++ SDO
Affects Versions: Cpp-Next
Environment: WinXP
Reporter: Matthew Peters
We have a schema file that defines an atom feed. It specified elementFormDefault="qualified" so that lower level elements should be in the target namespace. I will attach the schema as a separate file. With a very simple php test case as follows:
$xmldas = SDO_DAS_XML::create('Atom1.0.xsd');
$document = $xmldas->createDocument('http://www.w3.org/2005/Atom','entry');
$entry = $document->getRootDataObject();
$author = $entry->createDataObject('author');
$author->name[] = "Caroline Maynard";
print $xmldas->saveString($document,2);
we get
<?xml version="1.0" encoding="UTF-8"?>
<tns:entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.w3.org/2005/Atom">
<tns:author>
<name>Caroline Maynard</name>
</tns:author>
</tns:entry>
whereas we should see the <name> element in the tns namespace.
I have checked this with XERCES: the xml that we are generating will not validate, whereas if I alter it to have <name> in the tns namespace it will.
--
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] Resolved: (TUSCANY-1566) Element coming out in the wrong
namespace
Posted by "Pete Robbins (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Robbins resolved TUSCANY-1566.
-----------------------------------
Resolution: Fixed
Fix Version/s: Cpp-Next
Fixed in HEAD and the branch.
> Element coming out in the wrong namespace
> -----------------------------------------
>
> Key: TUSCANY-1566
> URL: https://issues.apache.org/jira/browse/TUSCANY-1566
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-Next
> Environment: WinXP
> Reporter: Matthew Peters
> Fix For: Cpp-Next
>
> Attachments: Atom1.0.xsd
>
>
> We have a schema file that defines an atom feed. It specified elementFormDefault="qualified" so that lower level elements should be in the target namespace. I will attach the schema as a separate file. With a very simple php test case as follows:
> $xmldas = SDO_DAS_XML::create('Atom1.0.xsd');
> $document = $xmldas->createDocument('http://www.w3.org/2005/Atom','entry');
> $entry = $document->getRootDataObject();
> $author = $entry->createDataObject('author');
> $author->name[] = "Caroline Maynard";
> print $xmldas->saveString($document,2);
> we get
> <?xml version="1.0" encoding="UTF-8"?>
> <tns:entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.w3.org/2005/Atom">
> <tns:author>
> <name>Caroline Maynard</name>
> </tns:author>
> </tns:entry>
> whereas we should see the <name> element in the tns namespace.
> I have checked this with XERCES: the xml that we are generating will not validate, whereas if I alter it to have <name> in the tns namespace it will.
--
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-1566) Element coming out in the wrong
namespace
Posted by "Matthew Peters (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthew Peters updated TUSCANY-1566:
------------------------------------
Attachment: Atom1.0.xsd
> Element coming out in the wrong namespace
> -----------------------------------------
>
> Key: TUSCANY-1566
> URL: https://issues.apache.org/jira/browse/TUSCANY-1566
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-Next
> Environment: WinXP
> Reporter: Matthew Peters
> Attachments: Atom1.0.xsd
>
>
> We have a schema file that defines an atom feed. It specified elementFormDefault="qualified" so that lower level elements should be in the target namespace. I will attach the schema as a separate file. With a very simple php test case as follows:
> $xmldas = SDO_DAS_XML::create('Atom1.0.xsd');
> $document = $xmldas->createDocument('http://www.w3.org/2005/Atom','entry');
> $entry = $document->getRootDataObject();
> $author = $entry->createDataObject('author');
> $author->name[] = "Caroline Maynard";
> print $xmldas->saveString($document,2);
> we get
> <?xml version="1.0" encoding="UTF-8"?>
> <tns:entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.w3.org/2005/Atom">
> <tns:author>
> <name>Caroline Maynard</name>
> </tns:author>
> </tns:entry>
> whereas we should see the <name> element in the tns namespace.
> I have checked this with XERCES: the xml that we are generating will not validate, whereas if I alter it to have <name> in the tns namespace it will.
--
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-1566) Element coming out in the wrong
namespace
Posted by "Pete Robbins (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521534 ]
Pete Robbins commented on TUSCANY-1566:
---------------------------------------
This should be fairly easy to fix. I think it is in the logic where we are writing a primitive as an element in a sequenced DO.
> Element coming out in the wrong namespace
> -----------------------------------------
>
> Key: TUSCANY-1566
> URL: https://issues.apache.org/jira/browse/TUSCANY-1566
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-Next
> Environment: WinXP
> Reporter: Matthew Peters
> Attachments: Atom1.0.xsd
>
>
> We have a schema file that defines an atom feed. It specified elementFormDefault="qualified" so that lower level elements should be in the target namespace. I will attach the schema as a separate file. With a very simple php test case as follows:
> $xmldas = SDO_DAS_XML::create('Atom1.0.xsd');
> $document = $xmldas->createDocument('http://www.w3.org/2005/Atom','entry');
> $entry = $document->getRootDataObject();
> $author = $entry->createDataObject('author');
> $author->name[] = "Caroline Maynard";
> print $xmldas->saveString($document,2);
> we get
> <?xml version="1.0" encoding="UTF-8"?>
> <tns:entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.w3.org/2005/Atom">
> <tns:author>
> <name>Caroline Maynard</name>
> </tns:author>
> </tns:entry>
> whereas we should see the <name> element in the tns namespace.
> I have checked this with XERCES: the xml that we are generating will not validate, whereas if I alter it to have <name> in the tns namespace it will.
--
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] Closed: (TUSCANY-1566) Element coming out in the wrong
namespace
Posted by "Matthew Peters (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthew Peters closed TUSCANY-1566.
-----------------------------------
I have tested the fix in the cpp-pre2.1 branch and it is indeed fixed. Thanks.
> Element coming out in the wrong namespace
> -----------------------------------------
>
> Key: TUSCANY-1566
> URL: https://issues.apache.org/jira/browse/TUSCANY-1566
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-Next
> Environment: WinXP
> Reporter: Matthew Peters
> Fix For: Cpp-Next
>
> Attachments: Atom1.0.xsd
>
>
> We have a schema file that defines an atom feed. It specified elementFormDefault="qualified" so that lower level elements should be in the target namespace. I will attach the schema as a separate file. With a very simple php test case as follows:
> $xmldas = SDO_DAS_XML::create('Atom1.0.xsd');
> $document = $xmldas->createDocument('http://www.w3.org/2005/Atom','entry');
> $entry = $document->getRootDataObject();
> $author = $entry->createDataObject('author');
> $author->name[] = "Caroline Maynard";
> print $xmldas->saveString($document,2);
> we get
> <?xml version="1.0" encoding="UTF-8"?>
> <tns:entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.w3.org/2005/Atom">
> <tns:author>
> <name>Caroline Maynard</name>
> </tns:author>
> </tns:entry>
> whereas we should see the <name> element in the tns namespace.
> I have checked this with XERCES: the xml that we are generating will not validate, whereas if I alter it to have <name> in the tns namespace it will.
--
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