Subject: RE: More than one element on a line?
From: "Maxime Levesque" <maximel@xxxxxxxxxxxxxx>
Date: Wed, 25 Aug 1999 09:29:27 -0700
|
Look at the com.jclark.xsl.sax.HTMLOutputHandler class
It's this class that format's the html output,
you can probably get what you want by subclassing it
and doing : XSLProcessorImpl.setOutputHandler(yourSubclassInstance).
There might be a way to do it from XSLT but I wouldn't know it ...
> Apologies if this question appears monumentally clueluess, but it's
> been bugging me for a while.
>
> I'm using XT.
>
> I would like to output HTML from my XSL stylesheet
> which does the following:
>
> <TD>Whatever foo foo foo</TD>
>
> Instead I get
>
> <TD>
> Whatever foo foo foo
> </TD>
>
> ...as any new element starts a new line. The reason I want to close
> up the gap is that browsers interpret the newline as whitespace
> and add an unwelcome few pixels to the end of the line.
>
> At the moment I'm postprocessing with Perl to clean up the output
> and remove preceding whitespace from </TD> tags. Anybody got any
> suggestions as to a cleaner method for doing this?
>
> thanks
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|