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">&#009;</xsl:text>
> 
> 3) A line break is:<xsl:text disable-output-escaping="yes">&#010;</xsl:text>

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="'&#09;'" />

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   "&#009;">
]>

and then just use &tab; everywhere - probably the cleanest solution.
(Not tested.)

-- 
Warren Hedley


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


Current Thread