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

Seeking a valid mdash

Subject: [xsl] Seeking a valid mdash
From: "William BC Crandall" <bc.crandall@xxxxxxxxxxxxx>
Date: Thu, 17 Jul 2003 20:08:00 -0700
mdash
Hello again,

I'm now running Xalan 2.5.1 to transform xml text files to xhtml.

I would like to use an mdash in the xml files, that, when processed,
will validate (http://validator.w3.org/).

Either &mdash; or &#8212; generate what my editor shows as —, or,
in hex mode, e2 80 94. Browsers show this as an mdash, but it
generates a validation error:

  Sorry, I am unable to validate this document because on lines
  157-158, 208-209, 652 it contained one or more bytes that I cannot
  interpret as us-ascii (in other words, the bytes found are not valid
  values in the specified Character Encoding).

These lines contain the mdashes. I'm surprised the validator tries
to interpret them as us-ascii, when the encoding is UTF-8. The xhtml
file header:

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />


I'm stumped. Many thanks for any suggestions.

William BC Crandall
Post Office Box 187
Lagunitas, CA 94938
bc.crandall@xxxxxxxxxxxxx


 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.