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
HTML DOCUMENT
standalone=true
  ELEMENT html
    ELEMENT head
    ELEMENT body
      TEXT
        content=l#E2#80#98information
orchis:~/XSLT/tests/tmp -> xsltproc doc.xsl doc.xml
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"></head><body>lâinformation</body>
</html>
orchis:~/XSLT/tests/tmp -> 

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

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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