cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <>
Subject Re: HTML Passthrough
Date Mon, 12 Nov 2001 20:04:46 GMT
At 02:41 PM 11/12/01 +0000, you wrote:
>Is there anyway that the XSP page can be told to treat the response as XHTML (and build
a XML Fragment)?
>Thanks for any advice,
>Jason Cunningham

Yes.  Someone else had this same problem recently.

Use <util:include-expr>.  It will parse the text that you pass in to it, and generate
SAX calls from it (as opposed to writing the text straight to the output - after escaping
all the control chars - like it's doing now).

1) Include the namespace xmlns:util="" in your XSP or the <util:include-expr>
won't get called properly.

2) the call you need to make this work:
<util:include-expr><util:expr>your xml goes here</util:expr></util:include-expr>


<xsp:logic>String  s = <get xml from somewhere>;</xsp:logic>

<xsp:expr>s</xsp:expr> takes the value of String  s, which is then passed in to


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message