You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2005/05/26 04:39:42 UTC
DO NOT REPLY [Bug 35076] New: -
cinclude parameters remove namespaces
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35076>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35076
Summary: cinclude parameters remove namespaces
Product: Cocoon 2
Version: 2.1.7
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: dev@cocoon.apache.org
ReportedBy: dave-junk@max-imp.com
There is a problem with namespaecs being removed from the value of request
parameters passed by cinclude.
Here is an example of the cinclude...
<include:includexml>
<cinclude:src>cocoon://blah</cinclude:src>
<cinclude:configuration>
<cinclude:parameter>
<cinclude:name>method</cinclude:name>
<cinclude:value>POST</cinclude:value>
</cinclude:parameter>
</cinclude:configuration>
<cinclude:parameters>
<cinclude:parameter>
<cinclude:name>this</cinclude:name>
<cinclude:value><test xmlns="http://blah.com/"/></cinclude:value>
</cinclude:parameter>
</cinclude:parameters>
</cinclude:includexml>
When this is ran the param 'this' will comes through as something like this
<?xml version="1.0" encoding="UTF-8"?>
<test/>
It is now not in a namespace. If I were too have many elements in different
namespaces they would all end up in the 'no namespace' arena.
When I put a prefix on the value, such as this...
...
<cinclude:parameter>
<cinclude:name>this</cinclude:name>
<cinclude:value><x:test xmlns:x="http://blah.com/"/></cinclude:value>
</cinclude:parameter>
...
I will get an error when trying to parse the value when trying to use the
results as XML. It says says the 'x' prefix is not defined.
I am pretty sure its because its coming through as:
<?xml version="1.0" encoding="UTF-8"?>
<x:test/>
David
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.