xsl-list
[Top] [All Lists]

Re: Passing HTML to template

2003-07-30 11:27:16
Karl J. Stubsjoen wrote:
The following template call results in all HTML being stripped from the
result.  Is this normal?

Yes. This is a FAQ.

    <td><div class="topic_topic"><xsl:value-of select="$TOPIC"/></div></td>

Xsl:value-of copies the stringified value of the selected data
to the output, which flattens it if it was an XML tree, thereby
also stripping everything you think of as "tag".
Use <xsl:copy-of select="$TOPIC"/> instead.

J.Pietschmann



XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>