I
Iain
Hey folks,
I've got a problem with an XML to HTML transformation that is now
bugging the heck out of me. Basically, all of the entities used in my
transformation style sheet are being rendered in my browser as
double-byte weirdness (an accented 'A' followed by the desired character).
When I run the transformation on one server (stone-aged Solaris/SPARC
with an equally stone-aged version of the libxml2/libxslt suite) it's
perfect. When I run it on my Gentoo/SPARC box (with the very latest
stable libxml2/libxslt builds) the entities render oddly.
I'm using utf-8 throughout. I've included the following line in my HTML
source:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
My browser, Mozilla 1.5, is set up for utf-8.
My transformation is being driven by a Perl process using the
XML::LibXML and XML::LibXSLT APIs; when I parse my XSLT style sheet,
I've even tried calling the expand_entities() method. As I said, works
fine on one machine with old s/w, but not my new one. All other aspects
of the transformation work fine. I am stumped.
Anyone have any idea what is going on. Is there anything I can do to
force the entities to come out as the same entities, not expanded
character sequences?
Hope someone can help.
Thanks,
Iain.
I've got a problem with an XML to HTML transformation that is now
bugging the heck out of me. Basically, all of the entities used in my
transformation style sheet are being rendered in my browser as
double-byte weirdness (an accented 'A' followed by the desired character).
When I run the transformation on one server (stone-aged Solaris/SPARC
with an equally stone-aged version of the libxml2/libxslt suite) it's
perfect. When I run it on my Gentoo/SPARC box (with the very latest
stable libxml2/libxslt builds) the entities render oddly.
I'm using utf-8 throughout. I've included the following line in my HTML
source:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
My browser, Mozilla 1.5, is set up for utf-8.
My transformation is being driven by a Perl process using the
XML::LibXML and XML::LibXSLT APIs; when I parse my XSLT style sheet,
I've even tried calling the expand_entities() method. As I said, works
fine on one machine with old s/w, but not my new one. All other aspects
of the transformation work fine. I am stumped.
Anyone have any idea what is going on. Is there anything I can do to
force the entities to come out as the same entities, not expanded
character sequences?
Hope someone can help.
Thanks,
Iain.