[XSL-LIST Mailing List Archive Home]
Re: [xsl] Preventing CDATA output in XHTML
Subject: Re: [xsl] Preventing CDATA output in XHTML|
From: Dale Tan <wtdtan@xxxxxxxxx>
Date: Tue, 03 Jul 2007 01:28:48 -0400
have you checked your <xsl:output method>?
i'm assuming you are using xslt 1.0 (or 1.1, whatever it is, just not 2)
so there is no native "xhtml".
so you can do something like the following:
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
the key there is the "method" attribute. in order to get a true "xhtml"
doc type, that needs to be equal to "xml" otherwise you will be parsing
as regular "html" where your self-closing tags will not be closed (<img>
instead of <img />, <br> instead of <br />, etc)
hope that helps. good luck.