Subject: RE: translate apos in string
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 16 Jan 2007 11:25:29 -0000
|
A good way to do this is to use variables:
<xsl:variable name="apos">'</xsl:variable>
<xsl:value-of select="translate(xxx, $apos, '')"/>
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Jimmy [mailto:jimmy@xxxxxxxxxxxxxx]
> Sent: 16 January 2007 11:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: translate apos in string
>
> I'm trying to get rid of the ' and the line feeds in my
> string but can't get it to work.
>
> That's what I have so far:
>
> <xsl:value-of select="
> translate(translate(/node,'
',''),''', ''')"/>
>
>
> The first translation of line feeds works just fine, but I
> can't get rid of the apostrophe. The parser gives me an error
> because of the &apos. I tried different stuff but couldn't
> get the proper solution.
>
> Anyone got a hint there?
>
> Thanks
> Jimmy
| Current Thread |
|
Abel Braaksma - 16 Jan 2007 11:25:16 -0000
Michael Kay - 16 Jan 2007 11:25:47 -0000 <=
|
|