xsl-list
[Top] [All Lists]

Re: msxml apostrophe encoding

2005-01-13 09:32:32
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>