Women in Technology

Hear us Roar



Article:
  XML Publishing with Cocoon 2, Part 1
Subject:   Getting XML from a string in XSP
Date:   2004-03-10 00:24:20
From:   mfarr
Hi,
Inside my XSP I am calling a method which returns a String with CML content. When I try to output the content of the string, it is treated as CDATA.


eg. String xml = "<greeting>Hello</Greeting>
<page>
<xsp:expr>xml</xsp:expr>
</page>


What I need from the example above is to generate the xml:
<page>
<greeting>Hello</greeting>
</page>
and pass it to the XSLT transformer.


How can this be done?


Thanks and Regards,
Marco.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Getting XML from a string in XSP
    2004-03-12 04:53:06  cvandyck [View]

    Try using:

    <xsp:logic>XSPUtil.includeString(xml,manager,contentHandler);</xsp:logic>

    In place of <xsp:expr>xml</xsp:expr>

    -CV