cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From philguillard <>
Subject Removing and/or escaping apos' in XSL
Date Sat, 04 Feb 2006 10:39:26 GMT
Hi all,

Hum.. I want to escape the apostrophe (') in XSL
Example : foo value is "I'm askin' to cocoon's mailinglist"

None of these tries are correct :

<xsl:value-of select="translate($foo,''', '')"/>
<xsl:value-of select="translate($foo,'&apos;', '')"/>
<xsl:value-of select="translate($foo,&apos;, '')"/>

Then i tried to define $apos as a variable to be able to use the 
transfrom function, but the same problem arizes when i declare it :

<xsl:variable name="apos" select="'''" />
<xsl:variable name="apos" select="'" />



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message