On Thu, Apr 14, 2005 at 11:05:16AM +0200, ggerard@xxxxxxxxxxx wrote:
> I have my xml and xsl pages in correct xml, and i was expecting to obtain
> after the xslt correct html, this is xhtml, but instead of it i am getting
> not closed tags, etc etc.
> For example, if in xsl i have <br />, in html output i get <br>.
>
> Is there any option to manage it? Is something i am doing wrong? Or
> mod_xslt is supposed to work as it?
uhm .. courious :) well... xhtml should be valid xml. So, I'd
try two things:
1 - putting the correct doctype in the .xsl file (if you
haven't already done so)
2 - changing the ``html'' in xml, but telling .xsl to omit
the xml declaration
By default, in my documents, I have something like:
<xsl:output method="html"
omit-xml-declaration="yes"
encoding="ISO-8859-1"
indent="yes"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
Try changing the method, and the doctype-public, as indicated
above..
Hope it helps,
Cheers,
Carlo
--
GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
-------------
The only thing cheaper than hardware is talk.