XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Tracey ZellmannSubject: DOCTYPE public and system info runs together
Author: Tracey Zellmann
Date: 17 Oct 2007 09:40 AM
I am having a problem with DOCTYPE. As an example, I want to create a HTML 4.01 Transitional page. I establish the stylesheet with this statement
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

Then I use this statement to create the DOCTYPE
<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"/>

The actual page generated then has this DOCTYPE
<!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. Although the pages render successfully, they fail validation.

I am using a fairly straight-forward java program using the standard material in JDK 1.5. I find that I can solve the problem by going to XSLT 2.0 and using the saxon8.jar for the transformer. For a variety of reasons, I would like to avoid that.

How can I get this to work successfully?

Posttop
Tony LavinioSubject: DOCTYPE public and system info runs together
Author: Tony Lavinio
Date: 18 Oct 2007 09:19 AM
We see you also asked and found an answer on XSL-LIST at
http://www.biglist.com/lists/xsl-list/archives/200710/msg00370.html

The Xalan embedded in JDK 5 has shown a few difficulties; we hope
you can work around it. Although the one in JDK 6 is better, it
is still based on an older version of Xalan than is available
directly from Apache.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.