cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From philguillard <philguill...@gmail.com>
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="'''" />
or
<xsl:variable name="apos" select="'" />


Regards,

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message