This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XML+XSL -> Formatted Text Report
- To: xsl-list at mulberrytech dot com
- Subject: Re: XML+XSL -> Formatted Text Report
- From: "Albert Tsun" <albert dot tsun at excel dot com dot hk>
- Date: Fri, 20 Oct 2000 11:21:19 +0800
- Reply-To: xsl-list at mulberrytech dot com
Where do you put your entity in DTD or XSL file ? Thanks
Juergen Baier <x_baier@propack-data.com> on 10/18/2000 04:25:42 PM
Please respond to xsl-list@mulberrytech.com
To: xsl-list@mulberrytech.com
cc: (bcc: Albert Tsun/Excel)
Subject: Re: XML+XSL -> Formatted 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list