This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: White Spaces before texts


If you are describing what you see in the browser, then I am not surprised.
That's how browsers handle spaces in HTML.  If you look at the output using
a text editor, you should see the spaces.  (And if you want to see the
spaces in the browser, use non-breaking spaces, which you can code in XSL as
 )

PC2

-----Original Message-----
From: Howard Lim [mailto:Howard.Lim@US.NET56.net]
Sent: May 24, 2001 08:55
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] White Spaces before texts


I would like the following output:
"  Welcome to mysite"
Note: 2 empty spaces before the sentence start and "mysite" is a link

I had tried the following in my xsl file:
<td> 
    <xsl:text>   Welcome to</xsl:text>
    <a href="http://www.mysite.com";>mysite</a>
</td>
It never give me the empty spaces before the word "Welcome". this is the
output:
"Welcome to mysite"

</snip>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]