Hello, > I worked around this problem, but I well think that it should considered > a serious bug in XPathScript;
Well, I am the co-maintainer of XML::XPathScript and I have an
objection :-) Would you please retry your failing stylesheet and the
original AxKit code (sans Matt's patch) after putting the following at
the beginning of your XML file?
<?xml version="1.0" encoding="iso-8859-1"?>
[Note to Matt: I believe Perl was actually already doing the "use
bytes;" thing. This, along with an overly forgiving expat, is why
Marco's first stylesheet unexpectedly works in the first place :-)]
> but page content is ISO-8859-1 actually:
>
> <html>
>
> <head><title>This page has no title</title></head>
> <body><h1>Questa ? una pagina</h1></body>
^
|
This is not ISO apparently (or is it a copy-paste glitch?) I'd rather
interpret the question mark as the symptom of some UTF-8 state machine
failing to interpret stuff. Indeed, "� " is not a valid UTF-8 string.
> * first of all, note that all my XML docs are ISO-8859-1 encoded;
That's okay, as long as they are marked as such - because the XML parser
has to convert everything to UTF-8 as per the XML spec before serving
text to applications (such as XPathScript).
> please, let me know if I should file a
> (another) bug report on rt.cpan.org and if I should put it in AxKit or
> XML::XPathScript (or both, or... or?).
In the current state of the AxKit CVS, XML::XPathScript does not share
code with AxKit, although the factoring work is done already and
available at http://kilimandjaro.dyndns.org/XPathScript/, but not yet
integrated (also search for "YPathScript" in the list archive).
Still, the method you use in order to produce ISO output should be
documented for the ISO-only (e.g., non-Web) usages of
XPathScript. This is already on my �urgent - to be done later� list
:-).
--
Dominique QUATRAVAUX Ing�nieur senior
01 44 42 00 08 IDEALX
pgp00000.pgp
Description: PGP signature
