You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Olivier Richaud <ol...@yahoo.com> on 2001/03/05 15:11:42 UTC

Inserting raw HTML/XML

We are storing into a database an HTML fragment that should be extracted
later. The fact is that with Cocoon, when we insert the fragment into a
node, Cocoon escapes the HTML tags. And Cocoon does not disable output
escaping with <xsl:value-of> so that we are stuck.

We are storing the HTML in order to keep the presentation. We are ready to
change the way we store information, and ready to store XML. But is there an
easy way to store an XML fragment and load it on demand so that it can be
inserted in a node?

Has anyone run into the same problem and found a workaround.

Thanks in advance.

Olivier.

_____________________________________
Olivier Richaud
E-FB2
WWW : http://www.efb2.com
Tel : O4 93 22 13 07 / 06 21 01 55 35


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Re: Inserting raw HTML/XML

Posted by simone cecchini <si...@kiosco.org>.
hello Olivier,

Monday, March 05, 2001, 15:11:42, you wrote:

OR> We are storing into a database an HTML fragment that should be extracted
OR> later. The fact is that with Cocoon, when we insert the fragment into a
OR> node, Cocoon escapes the HTML tags. And Cocoon does not disable output
OR> escaping with <xsl:value-of> so that we are stuck.

you should use <xsl:copy-of  to insert xml fragment, since <xsl:value-of always returns a string value.

OR> We are storing the HTML in order to keep the presentation. We are ready to
OR> change the way we store information, and ready to store XML. But is there an
OR> easy way to store an XML fragment and load it on demand so that it can be
OR> inserted in a node?

OR> Has anyone run into the same problem and found a workaround.

OR> Thanks in advance.

OR> Olivier.

OR> _____________________________________
OR> Olivier Richaud
OR> E-FB2
OR> WWW : http://www.efb2.com
OR> Tel : O4 93 22 13 07 / 06 21 01 55 35



OR> _________________________________________________________

OR> Do You Yahoo!?

OR> Get your free @yahoo.com address at http://mail.yahoo.com




OR> ---------------------------------------------------------------------
OR> Please check that your question has not already been answered in the
OR> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

OR> To unsubscribe, e-mail: <co...@xml.apache.org>
OR> For additional commands, e-mail: <co...@xml.apache.org>



-- 
Best regards,
 simone                            mailto:simone@kiosco.org



Re: Inserting raw HTML/XML

Posted by Tagunov Anthony <at...@nnt.ru>.
On Mon, 5 Mar 2001 15:11:42 +0100, Olivier Richaud wrote:

>But is there an
>easy way to store an XML fragment and load it on demand so that it can be
>inserted in a node?

Haven't tested it personally, but the esql.xsl taglib has got a tag
<esql:get-xml column=".."/>

(just the same as <esql:get-string/>)

Does serve your needs?

Best regards, Tagunov Anthony