cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Gibert <>
Subject Re: Obtaining XML into a string
Date Thu, 08 Mar 2001 08:54:04 GMT
Christof Schneider wrote:
> Hi Marc,
> I have done that in my logicsheet. But first some xsl: I guess you want to
> have the value of the
> tag sendmail2:htmlcontent in your string variable. xsl:copy-of makes a deep
> copy (compared to xsl:copy) to the output tree. Not that what you want.
> Replace the xsl:copy-of with xsl:value-of select="..." />. This delivers you
> the Text-Node, which is inserted there. So don't forget to put the value
> into quotation marks.
> Hers's the modifid xsl:xsp - logicsheet code:
> String htmlcontent=String.valueOf("<xsl:value-of
> select="//sendmail2:htmlcontent"/>");
> Hope it helps. Good luck.

Don't know if I understand exactly what you mean. I have:


I want to have all that XHTML between the htmlbody TAGs in a String, so
I can put it into a BodyPart of the message I'm sending.

If I do a <xsl:value-of ...> I'll have "Hi!First try" in my string,
instead of the XHTML code, or am I completely wrong?

Marc Gibert Ginestà               e-mail:
Cometa Technologies, S.L.         URL:
Telf.: 93 231 84 90               Fax: 93 245 93 43
View raw message