Hi Andreas, make sure that the sHtmlCode is a DOM (Document) object. Otherwise the jx template will interpret it as text. (which is so in your case).
You can also let the XML be generated by a cocoon pipline. So: var pu = new Packages.org.apache.cocoon.components.flow.util.PipelineUtil; var sHtmlCode = pu.processToDOM(String uri, Object viewData) //Process a pipeline and gets is result as a DOM Document I've done this out of my bare head, so I have not tested this code, but it should be correct. Kind regards, Jeroen Reijn -----Original Message----- From: Andreas Duffner [mailto:[EMAIL PROTECTED] Sent: Thu 8/23/2007 12:07 To: [email protected] Cc: Subject: Howto avoid masking of html in bizdata ? Hi. In my flowscript I have the following code: var sHtmlCode = "<h1>This is an header</h1>"; cocoon.sendPage("the-end.jxt", {"vHtmlCode":sHtmlCode } ); The generated html-code looks like that: <h1>This is an header</h1> So how do I avoid, that cocoon changes the "<" to a "<" ? -- Andreas Duffner Software-Entwicklung pripares GmbH Maximilianstr. 5 82319 Starnberg Tel +49 (0)8151 99 888 - 26 Fax +49 (0)8151 99 888 - 40 Mail [EMAIL PROTECTED] Tel +49 (0)8151 99 888 - 0 Fax +49 (0)8151 99 888 - 50 Mail [EMAIL PROTECTED] Web www.pripares.com Handelsregister: Registergericht München HRB 138701 Sitz der Gesellschaft: Starnberg Geschäftsführer: Aßmann Christoph, Ertl Andreas Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail und der darin enthaltenen Informationen sind nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
