[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Building a tab-delimited file in XSL
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">
</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="'	'" /> 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. (Not tested.) -- Warren Hedley XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|