Kaiserovi wrote:

> This is correct behaviour. All the stylesheet's whitespace-only text
> nodes are stripped, unless they are wrapped in a <xsl:text> element
> (roughly speaking; you can also use the xml:space attribute).
>
> So one (perhaps not the most elegant) option would be to write
>         <TD>
>         <xsl:text>
>                 </xsl:text>
>                 <A href="..."></A>
>                 <xsl:text>
>         </xsl:text>
>         </TD>

Or, when the it is implemented, use <xsl:output  .. indent="yes"/>

(I'd say it's a good thing that this defaults to "no", since html often
needs that "no newline before <br/> or </td> to avoid awkward layout
mishaps".)

/ Niklas



Reply via email to