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

Re: Netscape Navigator not displaying emdash

Subject: Re: Netscape Navigator not displaying emdash
From: Martin Stricker <shugal@xxxxxx>
Date: Wed, 20 Dec 2000 00:54:17 +0100
netscape navigator displaying
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 &#x2014; test
> >
> > In IE it comes out "...test - test", as it should.  In Netscape it
> > comes out as "...test &mdash; test".
> 
> Your XSLT processor is serializing the character as &mdash; 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 &#8212; 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 &#150;
(medium-lenght, best used for a dash) or &#151; (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 &#150; 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


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.