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

Re: [xsl] treating as html tags.


Subject: Re: [xsl] treating <xsl:value-of..> as html tags.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 26 Aug 2003 23:38:36 +0100

This is a FFFFAQ, se the FAQ for this list, but basically if you can
control your input you would be much better to have html elements in
your source not strings of quoted html markup ie have
<foo>
<html>
 ...
</html>
</foo>

rather than


<foo>
&lt;html>
 ...
&lt;/html>
</foo>

then your template for foo, just needs to do
<xsl:copy-of select="."/>
and the html elements will be copied. (XSLT does not deal with tags, it
has no access to the tags in the source file, and can not directly
generate tags in the result)

David

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



Current Thread