|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Seeking a valid mdash
Thanks to René, who caught the typo (did not change the result), and to Jarno, for suggesting a test in Firebird (Page Info says: "Encoding: UTF-8"), and David who put his finger on the problem. I now have more clarity, but still the same problem. The W3C validator (http://validator.w3.org/), takes in this test file: ---------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-style-type" content="text/css" /> <title>[Test validate: mdash]</title> </head> <body> <p> There is an mdash here: â?" </p> <p> Here is another: — </p> </body> </html> ---------------------------------------------------------------------- and reports: "Sorry, I am unable to validate this document because on line 13 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). Please check both the content of the file and the character encoding indication." Two questions: 1. Why does the validator see this file as us-ascii encoded? 2. What instructions/code can I put into a source xml document that will produce the ascii string "—" in my xml/xhtml output document, after Xalan's xslt processing? Thanks again for any thoughts. 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
|






