Link to home
Start Free TrialLog in
Avatar of tdsimpso
tdsimpso

asked on

How do I convert &apos in XML to an apostrophe in HTML?


I have an XML document with the following fragment:

<common_name common_name_id="600">ST.JOHN&apos;S WORT</common_name>

The XML fragment contains &apos;  I use XSLT to translate the XML into an HTML fragment but the &apos does not change to an apostrophe.

I am getting this:
ST.JOHN&apos;S WORT

and not this:
ST.JOHN'S WORT

Here is an example of the problem:
http://insidewood.lib.ncsu.edu/search/index.cfm?e=searchbygenus&q=3468

How do I use XSLT to make the correct translation?

Thanks,
Troy
Avatar of tdsimpso
tdsimpso

ASKER

Let me add this.  This is my XSL file.

http://insidewood450.lib.ncsu.edu:9876/search/xsl.cfm
ASKER CERTIFIED SOLUTION
Avatar of rdcpro
rdcpro
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial