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



                                                                                
                                                 
                      [EMAIL PROTECTED]                                         
                                                  
                                               To:      [EMAIL PROTECTED]       
                                      
                      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...



Reply via email to