|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] HTML Output from Cocoon/Xalan - rendering issues
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; charset="iso-8859-1" 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: <ta ble> the pages don't render correctly. big problem. As such, I use xalan's odd default setting (#1 above) to pregenerate pages. Question: 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








