This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Outputting "entire nodes" 2


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]