RE: [xsl] Empty spaces turn to %20

Subject: RE: [xsl] Empty spaces turn to %20
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 28 Mar 2003 19:32:44 -0000
> 
> This will get easier in XSLT 2.0, right?  Something like:
> 
> <xsl:analyze-string select="text()" regex="%20">
>   <xsl:non-matching-substring>
>     <xsl:value-of select="."/>
>   </xsl:non-matching-substring>
>   <xsl:matching-substring>
>     <xsl:text> </xsl:text>
>   <xsl:matching-substring>
> </xsl:analyze-string>
> 
XPath 2.0 has a replace() function: replace($x, "%20", " ")

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread