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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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>

Reply via email to