Re: string replace probleme
Oleg Tkachenko <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Organization | Multiconn Technologies |
| Message-ID | <[email protected]> |
maalej mustapha wrote: > this is my xsl : > .... > <xsl:variable name="test">aaaaa</xsl:variable> > <xsl:value-of select="str:replace($test,'a','b')"/> > .... > I become always a error message. > why take the function not a variable($test). That depends on the EXSLT implementation you are using, but chances are it's expecting first argument to be a string (as per http://www.exslt.org/str/functions/replace/index.html). So try to convert it to string explicitly: <xsl:value-of select="str:replace(string($test),'a','b')"/> -- Oleg Tkachenko http://blog.tkachenko.com Multiconn Technologies, Israel