xsl-list
[Top] [All Lists]

Re: [xsl] Detecting and replacing "Space" in a XML using XSL

2007-09-11 08:07:04

As you see I have spaces on my original string.

I want to translate spaces into '_x0020_' rather
than empty space. I
tried using "translate()" but it will put one
character because I have
single space.
translate(substring($text,$i,1), ' ',
'_x0020_')

I am unsre what '_x0020_' is but I have used this for
detecting a space:

<xsl:if test="string-length(sale) &lt; 1">
      <xsl:text>no</xsl:text>
</xsl:if> 


       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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