|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Seeking a valid 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 — 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








