Re: [xsl] XSLT 2.0 replace()

Subject: Re: [xsl] XSLT 2.0 replace()
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 2 Sep 2008 14:24:43 +0100
> 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;')



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

Current Thread