cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: HTML fragment from database come escaped
Date Fri, 16 Apr 2004 12:34:21 GMT

I also encounter the same problem and here is what we have done :

We retrieve the HTML block and we  put some  XML comment tag around it :

<P class=txt_w><STRONG>Marine Power Europe, Inc</STRONG>.<BR>is a

subsidiary of Mercury Marine USA, which is a division of Brunswick 
<P class=txt_w>It's a leader in the manufacture, distribution and sales of 
recreational and comm</P>
<P class=txt_w>commercial marine products throughout Europe, Africa, the 
Middle East and CIS.</P>
<P class=txt_w>Marine Power Europe, the international one-stop-shop for 
all that is best in pleasure boats and marine engines. </P>
<P><SPAN class=txt_w>Top brands: <STRONG>Mercury, Mariner, MerCruiser, 
MotorGuide, Quicksilver, Arvor, Uttern and Valiant</STRONG></SPAN> 

Then in the XSL used in the pipeline we say :

<xsl:copy-of select="/PAGE/BODY/CONTENT/CENTER/DESCRIPTION/comment()"></

You can use copy or value-of or... the important is "comment()"
16/04/2004 12:13
Please respond to users
        Subject:        HTML fragment from database come escaped

hi all

i try to post the html fragment as content  of a text area in a xsp-action 

that add this content to a database (msaccess), everything works fine and 
when i check the table's content i see the posted html fragment.

but when i use xsp to make a SELECT query, when i try to send this 
fragment to the browser, the content is escaped

so if the posted data are <strong>word</strong> instead i get a bold 
"word" i see 


because < and > came escaped.

has anyone try to do something similar?

any hint ?



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

View raw message