RE: [xsl] unparsed CDATA maintain HTML

Subject: RE: [xsl] unparsed CDATA maintain HTML
From: "George @dante" <dantetools@xxxxxxxxxxx>
Date: Sun, 14 Dec 2003 18:52:43 +0000

Question is whether you really need that. Since your handling XML anyway,
there's no reason you couldn't just have this in your source file:

<text>I <i>have</i> to add some <b>HTML</b> here is </text>

and a simple <xsl:copy-of select="." /> in the template for handling
'text'-elements, will result in the above being copied into the result

I tried that before and I tried now as well and I am getting the HTML elements with xmlns="" so
they don't render properly any ideas ? (note that I also have other HTML elements with attributes)

but I can't seem to be able to copy everything properly.

Does this mean that I need to define templates for every HTML element and copy elements and attributes there ?



Express yourself with cool emoticons - download MSN Messenger today!

XSL-List info and archive:

Current Thread