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

RE: text output with some significant white space

Subject: RE: text output with some significant white space
From: "Juergen Baier" <x_baier@xxxxxxxxxxxxxxxx>
Date: Fri, 20 Apr 2001 09:31:56 +0200
xsl text space
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

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.