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(_dot_)crandall(_at_)earthlink(_dot_)net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list