Re: [xslt] decimal char problem

On Thu, Sep 13, 2001 at 11:46:19AM +0200, Oliver Feige wrote:
> l‘information  = l‘information
> l‘information = l‘information
> When you view the result htm with netscape 4 then you get
> l?x2018;information
> Instead of "l'information". When the encoding is a decimal Char then you
> receive the correct view.

  hum, I didn't know that, ... netscape_sucks++

> Is there any change to get the result from libxslt with decimal Chars
> instead hexadecimal???

  Well, I suppose you asked for HTML output. Then the only way to
fix it is in the libxml2 code to switch to decimal charrefs in the
serialization code.

  Can you provide a test and stylesheet exhibiting the error, because
for HTML output the processor output the UTF8 value:

orchis:~/XSLT/tests/tmp -> xsltproc --debug doc.xsl doc.xml
  ELEMENT html
    ELEMENT head
    ELEMENT body
orchis:~/XSLT/tests/tmp -> xsltproc doc.xsl doc.xml
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">
<head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"></head><body>lâinformation</body>
orchis:~/XSLT/tests/tmp -> 

  If you generate XML and feed Netscape with it, I expect far more things
to break actually !


Daniel Veillard      | Red Hat Network  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]