Re: Outputting "entire nodes" 2

Subject: Re: Outputting "entire nodes" 2
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Fri, 23 Jun 2000 09:34:49 -0400
Hakan Pettersson wrote:
> 
> <HtmlTable><![CDATA[
>    <table border=0 cellspacing=0>
>       ...
>       ...
>   </table>
> ]]></HtmlTable>

Why not use well-formed XHTML to define your table. Put quotes
around your attributes, close all <td> tags, etc. It's the "right"
way to do things.

> It works almost with copy-of.
> However "<" is output as "&lt;"
> ">" is output as ">"

If you absolutely can't do that, then you can use (this only
works now because of the CDATA)

<xsl:value-of select="." disable-output-escaping="yes" />

Try not to resort to this kind of hack though. The
disable-output-escaping attribute should only be used
as a last resort.

-- 
Warren Hedley


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


Current Thread