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

Re: XML+XSL -> Formatted Text Report

Subject: Re: XML+XSL -> Formatted Text Report
From: Juergen Baier <x_baier@xxxxxxxxxxxxxxxx>
Date: Wed, 18 Oct 2000 10:25:42 +0200
xsl text report
Hi Albert,

> (1) How to have indentation, linefeed and space precisely placed in
> transformed output?  In my XSL, I use <xsl:text> to represent spaces and
> linefeed.

I use my own entities. These are:

<!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 -->

Then you can simply write something like

	&tab2;sometext&n2;
	&tab3;someothertext&n3;

(If I find a good solution to your other answers, I'll post it.)

Have fun,

Juergen

-- 


Juergen Baier


 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.