|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Preserve HTML formatting when apply-templates in
Hi Karl, > The variable which should retrieve the HTML from the matched > template is "ui_review". The template "review" is responsible for > generating the HTML. I suspect that in your ui_content template you're doing: <xsl:value-of select="$content" /> The <xsl:value-of> instruction gives you the "string value" of whatever you select; in the case of a result tree fragment (such as $ui_review), this is a concatenation of all the text nodes in the result tree fragment. What you see is the HTML you generated but with all the tags stripped. Instead, do: <xsl:copy-of select="$content" /> This gives you a copy of the result tree fragment, including all the element and attribute nodes that it contains. What you see is the HTML that you generated. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








