cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24305] New: - esql:get-xml ; wraping result with root element in a namespace
Date Fri, 31 Oct 2003 20:59:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24305>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24305

esql:get-xml ; wraping result with root element in a namespace

           Summary: esql:get-xml ; wraping result with root element in a
                    namespace
           Product: Cocoon 2
           Version: 2.1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: okrasz@o2.pl


When obtaining results by get-xml it is possible to wrap only by element without
specified any namespace prefix. This may cause some namespace problems. It works
only if the root is in default namespace, but then it may render problems if a
DB source is also unprefixed.

An example:
source is a column "mixed" with content "text1 <b>text2</b> text3"
1. <esql:get-xml column="mixed" root="ns:wraptag"/> produces empty result, even
if prefix "ns" is previously defined
2. <esql:get-xml column="mixed" root="wraptag"/>
   results in <wraptag>text1 <b>text2</b> text3</wraptag> which confuses
namespace
3. <ns:wraptag><esql:get-xml column="mixed"/></ns:wraptag> produces only:
<wraptag></wraptag>

Mime
View raw message