[xsl] HTML Output from Cocoon/Xalan - rendering issues

Subject: [xsl] HTML Output from Cocoon/Xalan - rendering issues
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of B. Tommie Usdin)
Date: Thu, 25 Jan 2001 17:00:31 -0500
From: "Powers, Peter" <peter.powers@xxxxxxxxxxxxxxxxxx>
To: "'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Subject: HTML Output from Cocoon/Xalan - rendering issues
Date: Thu, 25 Jan 2001 11:01:17 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;

Any Xalan fans listening out there?

I generate pages for sites two ways. Either I pregenerate html from a custom
config.xml file or the page is generated through cocoon on the server when
called. When I call xalan.xslt.ProcessorFactory for pre-generation,
instructions in the <xsl:output> tag are adhered to. When I use:

1) <xsl:output encoding="foo"/> or no output tag

the resultant html is left justified with carriage returns in logical places
(after </table> etc...). This turns out to be the best balance of legibility
and file size. When I use:

2) <xsl:output method="html" indent="yes"/>

All hell breaks loose...file sizes grow by 10K and complex table layouts
that depend on no extra whitespace get blown wide open (I'm not responsible
for the design requirements). When I use:

3)<xsl:output method="html"/>  or
   <xsl:output method="html" indent="no"/>

I get a steady stream of html (really long lines) except for CDATA sections.
This yields the best file size, HOWEVER, the really long lines are
periodically and irregularly broken by Netscape 4.7. When the break occurs
in the middle of a tag like this:


the pages don't render correctly. big problem.

As such, I use xalan's odd default setting (#1 above) to pregenerate pages.

Does anyone know how to replicate this form of html output with cocoon(who's
property file overrides the output tag)??  Once you tell cocoon to indent
output, it indents lines, but also wraps lines between attributes so there
is really no point to the indentation:

width="1"><br><table border="0" cellpadding="0" cellspacing="0"
  width="136"><tr><td><table border="0" cellpadding="0"
    cellspacing="0" width="136"><form

or Is there a way to turn off cocoon's formatter and just have it use xalan's <xsl:output> defaults??

PETER POWERS Learning Network 415.615.5634

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread