Your message dated Thu, 8 Sep 2005 13:31:58 +0200
with message-id <[EMAIL PROTECTED]>
and subject line libxml-libxslt-perl: Elements with namespaces are not matched
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Oct 2004 13:49:33 +0000
>From [EMAIL PROTECTED] Tue Oct 05 06:49:33 2004
Return-path: <[EMAIL PROTECTED]>
Received: from hal-4.inet.it [213.92.5.23]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CEph7-00031Q-00; Tue, 05 Oct 2004 06:49:33 -0700
Received: from 81-174-12-206.f5.ngi.it [::ffff:81.174.12.206] by hal-4.inet.it
via I-SMTP-5.1.13-51A
id ::ffff:81.174.12.206+JI2WHXh0s0e; Tue, 05 Oct 2004 15:49:31 +0200
Received: from localhost (localhost [127.0.0.1])
by eddie.casa (Postfix) with ESMTP id 8CCFC5D514;
Tue, 5 Oct 2004 15:49:30 +0200 (CEST)
Received: from eddie.casa ([127.0.0.1])
by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 11954-03; Tue, 5 Oct 2004 15:49:26 +0200 (CEST)
Received: from marvin.casa (marvin.casa [192.168.1.2])
by eddie.casa (Postfix) with ESMTP id EC6165D50F;
Tue, 5 Oct 2004 15:49:25 +0200 (CEST)
Received: from enrico by marvin.casa with local (Exim 3.36 #1 (Debian))
id 1CEph0-0004t5-00; Tue, 05 Oct 2004 15:49:26 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Enrico Zini <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: Elements with namespaces are not matched
X-Mailer: reportbug 2.99.4
Date: Tue, 05 Oct 2004 15:49:26 +0200
Message-Id: <[EMAIL PROTECTED]>
Sender: Enrico Zini <[EMAIL PROTECTED]>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Package: libxml-libxslt-perl
Version: 1.53-4
Severity: important
Hello,
I have this XML file:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:lc="http://purl.org/net/lacomune/">
<rdf:Description rdf:about="test">
<dc:title>Risorsa con problemi</dc:title>
</rdf:Description>
</rdf:RDF>
And this XSLT file:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns="http://www.w3.org/TR/xhtml1/strict"
>
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:value-of select="rdf:RDF/rdf:Description/dc:title"/><xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
When I apply the sheet with sablotron, I get:
$ sabcmd text.xsl z.xml
Risorsa con problemi
$
When I apply the sheet with this perl code:
my $xslt = XML::LibXSLT->new;
my $transform;
eval {
$transform = $xslt->parse_stylesheet_file('text.xsl');
}; die "$@ parsing text.xsl." if ($@);
my $newdom = $transform->transform($context->dom);
$transform->output_fh($newdom, \*STDOUT);
I get:
$ ./lctest show test
$
Fiddling more with apply-template and for-each, it seems that nodes with
a namespace tend not to get matched.
Bye,
Enrico
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686-smp
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]
Versions of packages libxml-libxslt-perl depends on:
ii libc6 2.3.2.ds1-17 GNU C Library: Shared libraries an
ii libxml-libxml-perl 1.56-6.1 Perl module for using the GNOME li
ii libxml2 2.6.11-3 GNOME XML library
ii libxslt1.1 1.1.8-4 XSLT processing library - runtime
ii perl 5.8.4-2.3 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.8.2] 5.8.4-2.3 The Pathologically Eclectic Rubbis
ii zlib1g 1:1.2.1.2-1 compression library - runtime
-- no debconf information
---------------------------------------
Received: (at 275015-done) by bugs.debian.org; 8 Sep 2005 11:32:45 +0000
>From [EMAIL PROTECTED] Thu Sep 08 04:32:45 2005
Return-path: <[EMAIL PROTECTED]>
Received: from fry.debianforum.de (mail.debianforum.de) [213.239.213.245]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EDKe5-0004x6-00; Thu, 08 Sep 2005 04:32:45 -0700
Received: from localhost (localhost [127.0.0.1])
by mail.debianforum.de (Postfix) with ESMTP id CD463B1C0C7;
Thu, 8 Sep 2005 13:32:43 +0200 (CEST)
Received: from mail.debianforum.de ([127.0.0.1])
by localhost (mail.debianforum.de [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 23346-01; Thu, 8 Sep 2005 13:32:02 +0200 (CEST)
Received: from wall.foobar.lan (p54B49C80.dip0.t-ipconnect.de [84.180.156.128])
(using TLSv1 with cipher AES256-SHA (256/256 bits))
(No client certificate requested)
by mail.debianforum.de (Postfix) with ESMTP id 43A94B1C0C4;
Thu, 8 Sep 2005 13:31:58 +0200 (CEST)
Received: from florian by wall.foobar.lan with local (Exim 4.50)
id 1EDKdK-0005jh-Qk; Thu, 08 Sep 2005 13:31:59 +0200
Date: Thu, 8 Sep 2005 13:31:58 +0200
From: Florian Ragwitz <[EMAIL PROTECTED]>
To: Enrico Zini <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: libxml-libxslt-perl: Elements with namespaces are not matched
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="LyciRD1jyfeSSjG0"
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
Priority: normal
X-Operating-System: Debian GNU/Linux 2.6.7-1-686
X-Binford: 5100 (more power)
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at debianforum.de
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
--LyciRD1jyfeSSjG0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Sep 08, 2005 at 01:21:22PM +0200, Enrico Zini wrote:
> On Thu, Sep 08, 2005 at 01:08:32PM +0200, Florian Ragwitz wrote:
>=20
> > This code gives me the desired output: ./transform.pl
> > Risorsa con problemi
> > Can you please check if this bug still occurs for you with the latest
> > version of libxml-libxslt-perl?
>=20
> Hi Florian. Unfortunately, it's been a long time I haven't been working
> with that code and I can't say when I'll be able to get back to it.
>=20
> If you want you can close this bug. If I'll be working with that code
> again and restumble on that problem, I'll reopen the bug or report it
> again.
Thank you for your response. I'll close the bug now.
-Flo
--=20
BOFH excuse #52:
Smell from unhygienic janitorial staff wrecked the tape heads
--LyciRD1jyfeSSjG0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFDICEtdC8qQo5jWl4RAidsAJ9bYP8cH/vNt++VF2oDfM0Rb5CV/ACdH6li
x0/yb5T8iisA8Em8i1z9UCU=
=+6oP
-----END PGP SIGNATURE-----
--LyciRD1jyfeSSjG0--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]