>What do you mean by switching to XHTML mode?
>Is it by specifying that <xsl:output method="xhtml"> ?
>Does Xalan recoqnise this type of output method?
>Or is it regarded as XML ?
Sorry; I shouldn't have used the term "mode" since it's confusing in this
case.
If you look at our serializer code, you'll see two things related to XHTML.
Only one of them works right now:
1) "xhtml" is listed as one of the possible values of method= (see
Method.java). Unfortunately, our code does not yet seem to respond to that
value. So
<xsl:output method="xhtml">
does NOT work. We should probably fix that.
2) However, if you look in SerializerToXML, you'll see that we recognize
any DTD "public ID" which starts with "-//W3C//DTD XHTML" as an indication
that the document being generated should be written out as XHTML. So I
believe any of these three SHOULD work:
<xsl:output method="xml"
doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system = "DTD/xhtml1-strict.dtd" />
<xsl:output method="xml"
doctype-public = "-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system = "DTD/xhtml1-transitional.dtd" />
<xsl:output method="xml"
doctype-public = "-//W3C//DTD XHTML 1.0 Frameset//EN"
doctype-system = "DTD/xhtml1-frameset.dtd" />
However, this may or may not do what you want. Currently the only effect of
specifying the XHTML doctype is to output a space before "/>". It does not
perform the special escaping of URI attributes which HTML mode does. I'm
honestly not sure whether it should.