Subject: Re: Detecting and replacing "Space" in a XML using XSL
From: oryann9 <oryann9@xxxxxxxxx>
Date: Tue, 11 Sep 2007 08:06:36 -0700 (PDT)
|
> 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) < 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
|