[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: msxml apostrophe encoding

Subject: Re: msxml apostrophe encoding
From: fchoodless@xxxxxxxxxxx
Date: Thu, 13 Jan 2005 16:32:32 +0000
html apostrophe
Thanks for all of the responses.   I've tried all of your suggestions, but with no success.  (tried changing the encoding of the HTML file, removed document.write and the double transform(thanks!), and tried the windows-1252 encoding on the output and html file)  

I did try changing the initial xml encoding from the server to UTF-8, but there are problems.  I'm using Livelink to generate the xml.  The default encoding is ISO-8859-1, when changing it to UTF-8 the xml process fails (throws an error) on any unrecognized characters. (such as the apostrophe in question)  Is there any work around for this, given that the initial xml encoding needs to be ISO-8859-1?  Or, am I doomed if I can't change the initial xml encoding?

I believe the apostrophe in question is a "U+2019 : RIGHT SINGLE QUOTATION MARK".  How could I test for this in the xsl? What's the correct syntax to represent a U+2019 character in a stylesheet?  Here's the html file which I'm trying to insert into.  I am grabbing the body id and inserting the transformation into the body using innerHTML.


 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<link href="/Livelink/livelink.exe?func=doc.fetch&nodeid=219311" rel="stylesheet" type="text/css">
<SCRIPT language="JavaScript1.2" src="/Livelink/llisapi.dll?func=doc.fetch&nodeId=229696">
//This script does the transform
</SCRIPT>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
</head>

<body id="theBody">
<script language="javascript">
getResults();
</script>
</body>
</html>

Thanks,

Carter

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.