"Patrick TJ McPhee" <> wrote in message
news:calh0c$sfj$...
> In article <abkzc.4357$>,
> Andy Fish <> wrote:
>
> % I was wondering if there is any way to control the whitespace
(specifically
> % line breaks) that are generated using Xalan XSLT processor with output
> % method=html.
>
> In general, if you put all literal text in xsl:text elements, the
processor
> will spit out only what you tell it to. If you emit literal text which is
> not wrapped up in xsl:text, the processor will typically emit all the text
> nodes in the same template, including the new-lines. This may be the
> problem you're having.
>
the problem I'm having is that even when I jam up the HTML fragment in the
xsl file with no whitespace at all, it still comes out with line breaks in.
Normally this wouldn't matter with HTML but in this specific case it is
making a difference to the way IE renders the page.
however, the <xsl:text> did provide a workaround. I replaced <br> with
<xsl:text><br></xsl:text>
and now the extra whitespace is gone. It seems like an ultra-bodge but there
are only a couple of places I need to use it so I'll have to be pragmatic
about it.
Thanks
Andy
> --
>
> Patrick TJ McPhee
> East York Canada
>