Re: "Re: [xslt] Apply stylesheet to a subbranch of a document"
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: "Re: [xslt] Apply stylesheet to a subbranch of a document"
- Date: Tue, 16 Sep 2003 11:19:45 -0400
On Tue, Sep 16, 2003 at 04:43:08PM +0200, Kasimier Buchcik wrote:
> Hi,
>
> Daniel Veillard wrote:
> > That could be done, but I'm afraid it's misleading, for the reason
> > I state: the document is modified, so the subtree would be modified.
> > I'm not sure it's a good idea to then go on processing with a half
> > modified tree.
>
> Whoops, I banned the first remark of yours from my brain, but here it is
> again: the document is modified? Is the source document always modified
> somehow if we perform a transformation? Could you clearify what is
> modified in the source document?
Some whitespace text nodes if the stylesheet asks for for strip-space
on some elements.
if (xsltNeedElemSpaceHandling(ctxt))
xsltApplyStripSpaces(ctxt, xmlDocGetRootElement(doc));
The _private field will be modified too for elements which are keys
I think that's all. If I suggested to copy it's for a reason !
Don't forget to read the documentation on the internals if you start
doing this kind of tricks:
http://xmlsoft.org/XSLT/internals.html
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.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]