[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
xsl tab delimited
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.