Re: [xml] docuemnt() function cache in libxslt
- From: Daniel Veillard <veillard redhat com>
- To: Benjamin Habegger <b habegger fr>
- Cc: xml gnome org
- Subject: Re: [xml] docuemnt() function cache in libxslt
- Date: Thu, 13 Mar 2008 04:43:15 -0400
On Tue, Mar 11, 2008 at 01:52:24PM +0100, Benjamin Habegger wrote:
Hello all,
I was wondering if there was any way in libxml to deactivate the cache
of files loaded with the xslt document() function.
no, that's needed for proper implementation of XSLT
http://www.w3.org/TR/xslt#function-document
see paragraph 7:
'Two documents are treated as the same document if they are identified
by the same URI.'
and the explicit requirement
'generate-id(document("foo.xml"))=generate-id(document("foo.xml"))'
which in libxml2/libxslt means using the same tree.
I think you need to find a better way to accomplish what you want, but
asking for different values on successive document() Just Can't Work !
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
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]