On Thursday, 05/09/2002 at 05:14 AST, Kelly Zeng <[EMAIL PROTECTED]> wrote: > I am using Xalan-Java version 2.3.1. It looks to me that the html > output method outputs a character using a character entity reference if > one is defined in HTML 4.0.
Per the XSLT spec, "The html output method should escape non-ASCII characters in URI attribute values using the method recommended in Section B.2.1 of the HTML 4.0 Recommendation." That's "should" rather than "must". So theoretically -- using the standard W3C interpretation of that term -- we're allowed to depart from it but would earn demerits for doing so. On the other hand, that "should" may allow us enough weasel room to permit offering a nonstandard feature, available at user request, that doesn't try to map back to the mnemonics. Might be worth logging this in Bugzilla as an Enhancement request; feel free to quote this note if you do so. On the other other hand, those pre-HTML4 browswers had lots of bugs and other departures from modern HTML. You'd better plan on writing separate XSLT files for them and for modern browsers, and quite possibly a stylesheet per browser. Do you really want to get into that business?
