[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] DOCTYPE public and system fields run together in generated output
Subject: [xsl] DOCTYPE public and system fields run together in generated output From: "Michael Tracey Zellmann" <tracey.zellmann@xxxxxxxxx> Date: Wed, 17 Oct 2007 11:06:33 -0400 |
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?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Maximum "child-depth" of , Dimitre Novatchev | Thread | RE: [xsl] DOCTYPE public and system, Michael Kay |
[xsl] Re: Wrapping two different el, Bruno Nahod | Date | RE: [xsl] DOCTYPE public and system, Michael Kay |
Month |