Hello
(Note: because I'm a bit too lazy to narrow this down to a smaller test case ATM, and since maybe someone here knows more about it, I'm posting here first instead of directly to rt.cpan.org)
There must be a bug somewhere in handling escaping of strings inside comments.
When trying out the example .xsl/.xml combo downloaded from http://slideml.org/specification/slideml_1.0/ (zip file), (you can see them here: http://elvis-5.mine.nu/~chris/ml/2html_ext_css.xsl http://elvis-5.mine.nu/~chris/ml/slideml_manual.xml )
I get a correct result when using "xsltproc", but a different one when using perl to do the same (using this script: http://elvis-5.mine.nu/~chris/ml/xsltransform).
Wrong (javascript does not work): http://elvis-5.mine.nu/~chris/ml/t1/slide_1.html Correct (javascript works: space key is trapped): http://elvis-5.mine.nu/~chris/ml/t2-xsltproc/slide_1.html
The difference is: [EMAIL PROTECTED] ml > diff -u t1/slide_1.html t2-xsltproc/slide_1.html --- t1/slide_1.html 2004-09-10 02:14:16.000000000 +0200 +++ t2-xsltproc/slide_1.html 2004-09-10 02:27:56.000000000 +0200 @@ -26,7 +26,7 @@
function loaded() {
- if (navigator.userAgent.indexOf("MSIE") > 0) { + if (navigator.userAgent.indexOf("MSIE") > 0) { document.attachEvent("onkeypress",onKeyPressIE); document.getElementById("slidecontent").style.height = "600px";
My libraries (Debian Sarge):
ii libxml2 2.6.11-3 GNOME XML library
ii libxml2-dev 2.6.11-3 Development files for the GNOME XML library
ii libxml-libxml-perl 1.56-6 Perl module for using the GNOME libxml2 library
ii libxslt1.1 1.1.8-4 XSLT processing library - runtime library
ii libxslt1-dev 1.1.8-4 XSLT processing library - development kit
ii libxml-libxslt-perl 1.53-4 Perl module for using the GNOME libxslt library
Package: xsltproc
Architecture: i386
Version: 1.1.7-1
Depends: libc6 (>= 2.3.2.ds1-4), libxml2 (>= 2.6.10), libxslt1.1 (>= 1.1.7), zlib1g (>= 1:1.2.1)
I then also tried the current versions from cpan w/o change:
XML::LibXML: '/usr/local/lib/perl/5.8.3/XML/LibXML.pm', VERSION 1.58 XML::LibXSLT: '/usr/local/lib/perl/5.8.3/XML/LibXSLT.pm', VERSION 1.57
Since xsltproc works correctly, it is probably a problem with the perl interfaces.
Christian.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]