Re: [xsl] How to avoid XML Parsing while XSLT Transform

Subject: Re: [xsl] How to avoid XML Parsing while XSLT Transform
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 16 Jul 2009 12:59:43 +0100
despite the subject line and your problem description, I don't think
your problem is related to parsing.

You are using  encoding="iso-8859-1"/
and say you want baker&#8217;s but if you had a #8217 in your result
then it would appear that way, as it can not be firectly encoded as a
iso-8859-1 character.

Your input has &#x00027; so it appears that you want to replace
#0027 by #8217, that is
APOSTROPHE by RIGHT SINGLE QUOTATION MARK
which you can do by
<xsl:template match="text">
<xsl:value-of select="replace(.,'&#0027;','&#8217;')"/>


or by using character maps.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread