[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Special Characters in IE 6
Subject: Re: [xsl] Special Characters in IE 6 From: Daniel Bibbens <dbibbens@xxxxxxxxxx> Date: Tue, 17 Jun 2003 08:48:36 -0500 |
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   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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Special Characters in IE , Charles White | Thread | RE: [xsl] Special Characters in IE , Jarno . Elovirta |
Re: [xsl] xsl fo padding-left issue, Mark Ivs | Date | Re: [xsl] xsl:if with "and' in test, "Braumüller, Hans" |
Month |