Subject: RE: [xsl] text output with some significant white space From: "Juergen Baier" <x_baier@xxxxxxxxxxxxxxxx> Date: Fri, 20 Apr 2001 09:31:56 +0200 |
Hi Steve, On 19.04.2001 18:08:17 "Steve Renshaw" wrote: >I am generating text file so can't have and <img>'s in output. > >I tried <xsl:text> to add spaces: ><xsl:text> </xsl:text> will put a space in output but it isn't >easy to visually distinguish one number of spaces from another. >as needed for indention of say {3 6 9 12 ...} spaces. It also >balloons line out making very hard read. declare some entities: <!ENTITY tab "<xsl:text> </xsl:text>"> <!-- Tab --> <!ENTITY tab2 "<xsl:text> </xsl:text>"> <!-- Two Tabs --> <!ENTITY tab3 "<xsl:text> </xsl:text>"> <!-- Three Tabs --> <!ENTITY tab4 "<xsl:text> </xsl:text>"> <!-- Four Tabs --> <!ENTITY n "<xsl:text> </xsl:text>"> <!-- New Line --> <!ENTITY n2 "<xsl:text> </xsl:text>"> <!-- Two new Lines --> <!ENTITY n3 "<xsl:text> </xsl:text>"> <!-- Three new Lines --> <!ENTITY space "<xsl:text> </xsl:text>"> <!-- Space --> <!ENTITY e "<xsl:text/>"> <!-- This does virtually nothing, but it's needed for formatting. --> Have fun, Juergen XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] text output with some sig, Thomas B. Passin | Thread | [xsl] set a variable to a node-set , Xiaocun Xu |
Re: [xsl] Inconsistent solution fro, Jeni Tennison | Date | Re: [xsl] getting a label from a sc, Jeni Tennison |
Month |