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

RE: White Spaces before texts

Subject: RE: White Spaces before texts
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 25 May 2001 12:39:26 +0100
cdata spaces before
I suspect you are describing the output as displayed by the browser, not the
actual generated HTML.

HTML ignores multiple spaces; to make them show in the browser you need to
output a non-breaking space, &#x160;. This is an HTML "feature", nothing to
do with XSLT.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Howard Lim
> Sent: 24 May 2001 16:55
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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"
>
> I also tried out the following:
> <td>
> 	<![CDATA[  ]]>
> 	<a href="networking.asp" class="category">Networking</a>
> </td>
> And it give me the same output:
> "Welcome to mysite"
>
> I need some empty spaces before the sentence start, can
> somebody please
> help? Thank you.
>
> Howard
> howard.lim@xxxxxxxxxxxx
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.