Re: [xsl] dash

Subject: Re: [xsl] dash
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 13 Mar 2001 22:20:19 -0700 (MST)
Peter Flynn wrote:
> Be careful, Yue: 0150 is an en-dash or en-rule

No it isn't! At least not in the coded character set shared by Unicode and
ISO/IEC 10646. This is what an XML or HTML numeric character reference like
&#150; references, by definition. &#150; always means the non-printing
control character with the legacy name START OF GUARDED AREA.

Character number 150 is only the EN DASH character in Windows 8-bit
codepages, which are irrelevant when you write a numeric character
reference. See http://www.eki.ee/letter/chardata.cgi?ucode=2013 as well as
the relevant specs. Numeric character references never refer to Windows
codepages, even though browsers may erroneously exhibit such behavior.

You were right to point out &#x2013; and &#x2014; though.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/

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


Current Thread
  • [xsl] dash
    • YueMa - Tue, 13 Mar 2001 17:43:23 -0500
      • Wendell Piez - Tue, 13 Mar 2001 18:09:44 +0000
        • Peter Flynn - Wed, 14 Mar 2001 00:29:24 +0000
          • Mike Brown - Tue, 13 Mar 2001 22:20:19 -0700 (MST) <=
          • YueMa - Wed, 14 Mar 2001 12:25:33 -0500
          • David Carlisle - Wed, 14 Mar 2001 17:59:51 GMT
          • YueMa - Wed, 14 Mar 2001 14:58:36 -0500
          • Mike Brown - Thu, 15 Mar 2001 00:25:50 -0700 (MST)