Subject: Re: [xsl] DOCTYPE public and system fields run together in generated output|
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 17 Oct 2007 20:03:48 +0200
I have not been able to find an answer in the archives.
I am generating HTML with an XSLT 1.0 style-sheet transforming XML directly through a Transformer using the standard resources in Java JDK 1.5.0_11
My resulting HTML page has this DOCTYPE line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
The problem is that the two quoted fields are run-together without any white space. The resulting web-page renders successfully, but fails W3C validation.
I use this statement in my style-sheet
<xsl:output doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd " method="html" indent="yes" encoding="ISO-8859-1" media-type="text/html"/>
I have been able to avoid this problem by using XSLT 2.0 along with the saxon8.jar to employ the net.sf.saxon.TransformerFactoryImpl
However, my user would very much like to solve this staying within the normal JDK resources and staying with XSLT 1.0
What might I do to solve this?
Cheers, -- Abel Braaksma