[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

DOCTYPE public and system fields run together in gene

Subject: 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
 DOCTYPE public and system fields run together in  gene
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.