"Re: [xslt] Apply stylesheet to a subbranch of a document"
- From: Kasimier Buchcik <kbuchcik 4commerce de>
- To: <xslt gnome org>
- Subject: "Re: [xslt] Apply stylesheet to a subbranch of a document"
- Date: Tue, 16 Sep 2003 18:56:47 +0200
Hi,
Daniel Veillard wrote:
> 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
If the _private field is used, then I see some wrappers for libxml2
running into trouble if they use this field. Sounds like the
modification would be ok if the source document is used for
transformations only.
Thank you for the information!
Greetings,
Kasimier Buchcik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]