[xml] xsltApplyStylesheet modifies doc
- From: François Delyon <f delyon satimage fr>
- To: libxml <xml gnome org>
- Subject: [xml] xsltApplyStylesheet modifies doc
- Date: Mon, 30 May 2011 14:01:27 +0200
It seems reasonable to expect that xsltApplyStylesheet should preserve
the input document.
It is not the case since it calls xsltApplyStylesheetInternal which
modifies the children of the
document in order to hide the doc->intSubset.
This modification is not reversible since, as fas as I unsterstand, it
destroys the linkage even in doc->intSubset.
Nevertheless, I think that xsltApplyStylesheetInternal should be
encapsulated in another function ensuring that the document
is preserved.
By the way, I don't figure out what is the status of doc->intSubset. I
understand it is a shortcut to reach the dtd, but is it supposed to
retain the linkage of the dtd children?
François.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]