cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Gibert <ma...@cometatech.com>
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:

<sendmail:send-mail>
	....
	....
	<sendmail:htmlbody><html><head><title>Hi!</title></head><body><h1>First
try</h1></body></html></sendmail:htmlbody>
</sendmail:send-mail>

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?

TIA.
-- 
Sincerely,
Marc Gibert Ginestà               e-mail: marcg@cometatech.com
Cometa Technologies, S.L.         URL: http://www.cometatech.com
Telf.: 93 231 84 90               Fax: 93 245 93 43
Mime
View raw message