|
Subject: Re: [xsl] 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Detecting and replacing "Spac, Buddhi Dananjaya | Thread | Re: [xsl] Detecting and replacing ", Wendell Piez |
| [xsl] Transforming flat ?WordML? s, David Medley | Date | Re: [xsl] Transforming flat ?WordML, Wendell Piez |
| Month |