You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by kr...@mmm.com on 2003/04/22 02:19:05 UTC
html output has wrong header in xalan-j 2.4.1.
I am migrating from xalan-java-1 to xalan 2.4.1. I have a stylesheet that
worked in xalan-java-1; but in 2.4.1 it produces this header;
<?xml version="1.0" encoding="UTF-8"?>
instead of:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional/EN" >
The stylesheet is declared as follows:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version
="1.0">
<xsl:import href="common_parameters.xsl"/>
<xsl:import href="common_css.xsl"/>
<xsl:import href="common_templates.xsl"/>
<xsl:output method="HTML" indent="yes" doctype-public="-//W3C//DTD
HTML 4.01 Transitional//EN" encoding="UTF-8"/>
Does anyone know why the transformation is not recognizing the output as
html?
Thanks.
Keith...
Re: html output has wrong header in xalan-j 2.4.1.
Posted by da...@us.ibm.com.
Hi Keith,
Check the root element. If it has a non-null namespace URI, then the
processor has to serialize the result tree as XML, rather than as HTML.
Dave
kroberts@mmm.com
To: xalan-j-users@xml.apache.org
04/21/2003 05:19 cc: (bcc: David N Bertoni/Cambridge/IBM)
PM Subject: html output has wrong header in xalan-j 2.4.1.
I am migrating from xalan-java-1 to xalan 2.4.1. I have a stylesheet that
worked in xalan-java-1; but in 2.4.1 it produces this header;
<?xml version="1.0" encoding="UTF-8"?>
instead of:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional/EN" >
The stylesheet is declared as follows:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version
="1.0">
<xsl:import href="common_parameters.xsl"/>
<xsl:import href="common_css.xsl"/>
<xsl:import href="common_templates.xsl"/>
<xsl:output method="HTML" indent="yes" doctype-public="-//W3C//DTD
HTML 4.01 Transitional//EN" encoding="UTF-8"/>
Does anyone know why the transformation is not recognizing the output as
html?
Thanks.
Keith...