xsl-list
[Top] [All Lists]

Re: treating <xsl:value-of..> as html tags.

2003-08-26 15:38:36

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



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