This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Building a tab-delimited file in XSL



> The first thing you need to do is be sure the output is "text".
> 
> 2) To do a tab<xsl:text disable-output-escaping="yes">&#009;</xsl:text>
> 
> 3) A line break is:<xsl:text disable-output-escaping="yes">&#010;</xsl:text>

disable-output-escaping is having no effect here, that only affects <
and &.

You only need the <xsl:text> at all if you only want to output a tab.
ie the situation is exactly same as outputting a space, if the text node
in your stylesheet contains more than just white space then it will be
output, but if it is all white it will be stripped and you need xsl:text
so

<xsl:template match="xxx">
<xsl:text>    </xsl:text>
<xsl:text>===</xsl:text>
1	2
</xsl:template>

will output
TAB===NEWLINE1TAB2NEWLINE

David


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]