X
Xeon
Hi,
I'm trying to replace spaces with %20 with help of translate, but not
successfull. Here's a node in the xml file :
<title>This is some test title</title>
The xsl code I'm using :
<xsl:value-of select="translate(title, ' ', '%20')"/>
<xsl:variable name="uri_spacer">%20</xsl:variable>
<xsl:value-of select="translate(title, ' ', $uri_spacer)"/>
Both code yields to this result :
This%is%some%test%title
The target result :
This%20is%20some%20test%20title
Could somebody tell me how can I achieve this?
TIA
I'm trying to replace spaces with %20 with help of translate, but not
successfull. Here's a node in the xml file :
<title>This is some test title</title>
The xsl code I'm using :
<xsl:value-of select="translate(title, ' ', '%20')"/>
<xsl:variable name="uri_spacer">%20</xsl:variable>
<xsl:value-of select="translate(title, ' ', $uri_spacer)"/>
Both code yields to this result :
This%is%some%test%title
The target result :
This%20is%20some%20test%20title
Could somebody tell me how can I achieve this?
TIA