xsl-list
[Top] [All Lists]

RE: Re: Displaying blank space

2003-01-17 07:40:06
It worked.  Thank you so much!!!

-----Original Message-----
From: jeni(_at_)jenitennison(_dot_)com [mailto:jeni(_at_)jenitennison(_dot_)com]
Sent: Friday, January 17, 2003 8:29 AM
To: Joynoosaeng, Jitt /xtwn
Cc: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Displaying blank space


Hi Jitt,

I am reading in an xml tag that contains a value along with blank
spaces. When this tag is displayed on the browser the spaces are not
showing up. How can I get the spaces to display?

Substitute the spaces for non-breaking spaces as follows:

  <xsl:value-of select="translate(text, ' ', '&#160;')" />

Non-breaking spaces aren't collapsed by HTML browsers, whereas normal
spaces are.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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



<Prev in Thread] Current Thread [Next in Thread>