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

Re: Special Characters in IE 6

Subject: Re: Special Characters in IE 6
From: Daniel Bibbens <dbibbens@xxxxxxxxxx>
Date: Tue, 17 Jun 2003 08:48:36 -0500
w3c special characters
The newer (more compliant) Mozilla versions do this, too. This
works for me:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  xmlns:cvs="http://www.cvshome.org/docs/manual/cvs_12.html"
  cvs:id="$Id: index.xsl,v 1.9 2003/06/14 13:34:20 dbibbens Exp $"> 

  <xsl:output 
    method="xml"
    media-type="text/html"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
    doctype-system="DTD/xhtml1-strict.dtd"
    cdata-section-elements="script style"
    encoding="ISO-8859-1"/>

  <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml" 
      cvs:id="$Id: index.xsl,v 1.9 2003/06/14 13:34:20 dbibbens Exp$">
      ...
    </html>
  </xsl:template>

</xsl:stylesheet>


"Rowlinson, Nicole SLGA" <NRowlinson@xxxxxxxxxxxxxx> writes:

> I have a problem with special characters not displaying properly in IE 6.  I
> use numeric character codes, such as &#160; for a space, and they all
> display as a question mark in IE 6.  They all worked fine in IE 5.5, so I'm
> not sure what is different now.
>
> The encoding I am using in my XSL is:
>
> 	<?xml version="1.0" encoding="ISO-8859-1" ?>
>
> 	<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0" xmlns="http://www.w3.org/TR/REC-html40">
> 	<xsl:template match="/">
> 		<html>
> 			<head>
> 				<meta http-equiv="content-type"
> content="text/html; charset=UTF-8" />
> 			</head>
> 	...
>
> If I include 
>
> xmlns="http://www.w3.org/TR/REC-html40"
>
> in my namespace, it gets rid of the question marks, but then the special
> characters that don't use a numeric code, such as apostrophes, appear as
> garbage characters.  I can't find the right combination to get rid of both
> these problems at the same time.
>
> I should say that I don't have control over the XML, as it is generated by a
> third-party product.
>
> Any help is greatly appreciated!
>
> Nicole R.
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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


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.