This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Netscape Navigator not displaying emdash
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Netscape Navigator not displaying emdash
- From: Martin Stricker <shugal at gmx dot de>
- Date: Wed, 20 Dec 2000 00:54:17 +0100
- Organization: http://martin-stricker.de/ und http://www.surfo.net/
- References: <200012192056.eBJKuip30916@skew.org>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Mike Brown wrote:
>
> Typrowicz, Jim wrote:
> > I have an emdash character (a long dash) that I would like to
> > display on my HTML page, which is generated with Cocoon/XSL. The
> > character displays fine in IE but not Netscape.
> >
> > I have something like: ...test — test
> >
> > In IE it comes out "...test - test", as it should. In Netscape it
> > comes out as "...test — test".
>
> Your XSLT processor is serializing the character as — which is
> legal in HTML but Netscape doesn't like it. This is a bug in Netscape.
> Versions prior to 6 don't recognize the entities corresponding to
> characters over 255. Netscape should accept — instead, but you
> have no way of forcing your XSLT processor to serialize em dash
> characters that way.
Right. But there is a really nasty little trick: Use –
(medium-lenght, best used for a dash) or — (really long, doesn't
look good as a dash). These two characters are officially non-printable,
but in most windows fonts (I don't know about other OS) they are
displayed as dashes. I regularly use – for a dash in my webpages.
As I said it's a dirty trick and might get you into trouble with certain
fonts and other operating systems than M$Windoze.
> Go to http://www.hclrss.demon.co.uk/demos/ent4_frame.html
That's a nice thing, I'll add it to my bookmarks!
Best regards,
Martin Stricker
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list