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

RE: xslt newbie- inserting spaces

Subject: RE: xslt newbie- inserting spaces
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Fri, 15 Aug 2003 16:16:28 -0600
blank space xslt nbsp
> From: Bruce Rojas-Rennke [mailto:brr@xxxxxxx]
> Sent: Friday, August 15, 2003 3:26 PM
> Subject:  xslt newbie- inserting spaces
> 
> 
> Hello all,
> 
>   I'm back like a bad rash. Here's a question I'm sure has 
> been asked but
> can't seem to traverse in the archives.
> 
>   I'm wanting to insert spaces via my xslt stylesheet, so the 
> html output
> has some blank spaces where I want them.
> 
> All I've read suggests that i can just include this :
> <xsl:text>   </xsl:text>

This will collapse to a single space in most user agents when rendering
HTML.

> - doesn't work for me,
> 
> nor do these variants help:
> 
>   <xsl:text>&nbsp;&nbsp;&nbsp;&nbsp;</xsl:text>

XSLT processors don't recognize most named character entities.  Try &#160;
instead.

>   <xsl:text disable-output-escaping="yes">

If you've read the list for a while, you probably know how most of the gurus
regard d-o-e.  It's also not guaranteed to work in every implementation.

hth,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.357.3548 |
| cheap tickets, part of trip network                fax 303.357.3380 |
| 6560 greenwood plaza blvd., suite 400           englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.com/ |

 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.