Re: [xslt] what's xslt wrong



On Sat, Jan 19, 2002 at 04:46:39PM +0800, Tom Stanley wrote:
> I have the following xst and xml.
> <?xml version="1.0" encoding="BIG5"?>
                      ^^^^^^^^^^^^^^^
[...]
>                 <name>ÍõÁ¦</name>
                        ^^^^
[...]
> I expect the result:
> <?xml version="1.0"?>
                     ^ no encoding
> 
>         <fmtinfo>ÍõÁ¦,your account has been locked
                   ^^^^

  No, you cannot expect that result for obvious reasons !
if that name is represented with those 4 chars in BIG5, since the
result is encoded in UTF8 (there is no encoding declaration) it cannot
represent this same name with the same characters in that encoding,
this is plain wrong.
  I think you should read read some documentation on encodings
and XML/XSLT. Try a book or ask the XSL list, as explained at:
     http://xmlsoft.org/XSLT/bugs.html

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
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]