producing XHTML from XSLT
Not sure if I'm being dense here, but I don't seem to be able to produce valid XHTML from my stylesheet.
I've got:
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="html"
encoding="UTF-8"
omit-xml-declaration="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="yes" />
In the head of my stylesheet. However, in the result document my META tags are produced unclosed i.e. <meta content="item" name="meta_name">
and my <br /> tags become <br>
All of this, of course, causes it to fail the w3c validator for XHTML 1.0 Transitional.
Is this a problem with my XSLT or with the java Transformer classes?
hmk
|