Re: [xml] odd values for node->content after xsltApplyStylesheet
- From: Daniel Veillard <veillard redhat com>
- To: Eric Haszlakiewicz <EHASZLA transunion com>
- Cc: xml gnome org
- Subject: Re: [xml] odd values for node->content after xsltApplyStylesheet
- Date: Tue, 4 May 2004 10:08:09 -0400
On Tue, May 04, 2004 at 09:56:19AM -0400, Daniel Veillard wrote:
On Mon, May 03, 2004 at 05:07:47PM -0500, Eric Haszlakiewicz wrote:
1) um.. I'm using libxml2-2.6.9 and libxslt-1.1.6. I don't see a more
recent version.
Then the content field of an ELEMENT node should be NULL
Hum, I just realized you asked in the context of XSLT.
When an XML document is passed to the XSLT processor, the tree
is scanned and the ELEMENTs are labelled in document order.
This is needed to speed up XPath queries, especially ordering
or resulting nodesets. And that order is stored in the node->content
of ELEMENTS nodes. So yes, you are right, the node->content get modified
when you apply a stylesheet to a document. This should be harmless
as the content field is not supposed to be used for ELEMENT nodes.
Once the XSLT processing is done you can reset them to NULL if this
really annoys you, there should be no side effect.
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]