[XSL-LIST Mailing List Archive Home]
Re: Building a tab-delimited file in XSL
Subject: Re: Building a tab-delimited file in XSL|
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Thu, 15 Jun 2000 13:56:04 -0400
ed billings wrote:
> 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">	</xsl:text>
> 3) A line break is:<xsl:text disable-output-escaping="yes">
Because this kind of thing isn't very readable, you might find
it helpful to create a global variable in your stylesheet:
<xsl:variable name="tab" select="'	'" />
and then use value-of to use it
<xsl:value-of select="$tab" />
If you were really keen, you could declare an entity in
your stylesheet's internal DTD.
<!DOCTYPE xsl:stylesheet [
<!ENTITY tab "	">
and then just use &tab; everywhere - probably the cleanest solution.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list