Re: [xslt] key() doesn't work in conjunction with copied documents
- From: Daniel Veillard <veillard redhat com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] key() doesn't work in conjunction with copied documents
- Date: Thu, 27 Jan 2005 18:38:31 -0500
On Wed, Jan 26, 2005 at 05:27:26PM +0100, Matthias Urban wrote:
> The problem here is that key() doesn't match anything. But if I remove
> "doc = xmlCopyDoc(doc,1);" from the application, i.e. the stylesheet is
> applied to the original input document, key() works as expected.
please bugzilla this, after making sure you tested against the
latest version of libxslt and libxml2.
> Is this a bug or how do I copy a document without parsing the input file
> again and without loosing the functionality of key()?
Sounds like a bug. BTW parsing a file from scratch is faster than
copying an existing doc for various/complex reasons, uses more ram too
this should be fixed at some point but it's not precisely trivial.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://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]