This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: dash
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] dash
- From: Peter Flynn <peter at silmaril dot ie>
- Date: Wed, 14 Mar 2001 00:29:24 +0000
- Cc: YueMa <may at mail dot nlm dot nih dot gov>
- Organization: Silmaril Consultants
- References: <5.0.0.25.0.20010313180749.03580560@earthlink.net>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Tue, 13 Mar 2001, Wendell wrote:
> At 05:43 PM 3/13/01 -0500, Yue wrote:
> >Hi there,
> >How can I use the "dash" character in XSL?
> >I know I can use "–" in XML but it doesn't work if I put it in my
> >XSL.
>
> A character entity such as – should work fine. (I'm taking your word
> for it that it's the dash :-)
Be careful, Yue: 0150 is an en-dash or en-rule (a short dash used
between ranged of numbers, sometimes typed like 36--45). What
most people call "the dash" --- used between phrases like this
--- is an em-dash or em-rule and is code point 0151, not 0150.
Better still, use the typographic characters if your rendering
system supports them:
<!ENTITY ndash "–"> <!-- EN DASH -->
<!ENTITY mdash "—"> <!-- EM DASH -->
///Peter
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list