Subject: [xsl] Seeking a valid mdash From: "William BC Crandall" <bc.crandall@xxxxxxxxxxxxx> Date: Thu, 17 Jul 2003 20:08:00 -0700 |
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 — or — 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to remove xalan exten, David Carlisle | Thread | Re: [xsl] Seeking a valid mdash, David Carlisle |
Re: [xsl] Re: writing output HTML t, Mukul Gandhi | Date | RE: [xsl] Seeking a valid mdash, Jarno . Elovirta |
Month |