Re: [xsl] XSLT 2.0 replace()

Subject: Re: [xsl] XSLT 2.0 replace()
From: Lou Iorio <lou@xxxxxxxxxxxx>
Date: Tue, 2 Sep 2008 09:33:08 -0400
On Sep 2, 2008, at 9:24 AM, Andrew Welch wrote:

So I can change the first &amp;, but not the second.

<xsl:value-of select="replace(@title, '&amp;lt;', '&lt;')"/>

You can pass a function as the argument of a function eg:


replace(replace(@title, '&amp;lt;', '&lt;'), '&amp;gt;', '&gt;')

Thank you; that was the fundamental concept I was missing.


Lou




--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread