[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Result tree fragment to string?


Subject: Re: [xsl] Result tree fragment to string?
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 27 Aug 2008 17:08:40 +0100

2008/8/27 Garriss Jr., James P. <jgarriss@xxxxxxxxx>:
> I have a variable that contains a result tree fragment of HTML code.  I
> need to convert the result tree fragment to a string.  The string must
> not only include the text node values but the HTML element names and
> attributes as well.

Does:

<xsl:copy-of select="$var"/>

...do what you need?  If not post back with an example because it's
not that clear what you are after...


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


Current Thread