[xsl] & replacemnt?

Subject: [xsl] & replacemnt?
From: "El Hage Camille" <CAMILLE.ELHAGE@xxxxxxxxxxxxxxxx>
Date: Mon, 2 Dec 2002 17:34:50 +0100
Hi all,
I have a source xml file containing data as:
<html>
  <b>Gamme de vitrages d&amp;#8217;allèges opacifiés </b>
  <li>Vitrages d&amp;#8217;allèges composés d&amp;#8217;un vitrage à contrôle solaire Solarbel et d&apos;une laque noire </li>
</html>
the problem is that when I want to translate such data into PDF using XSL + FOP, the &amp;#8217; is showed as &#8217; while what I need is to show the value of &#8217; which is ' (the apostrophe in this case).
I tried to use a replacement template (GlobalReplace found here: http://www.xml.com/pub/a/2002/06/05/transforming.html) but I could not replace the "&amp;" string by the "&" character, somehow this function also expects a value to be given after the &. Trying to replace "&amp;" by "&amp;" was of course useless too.
Anybody has an idea about how I can solve that?
thanks in advance

Camille

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread