[xslt] xsltApplyStylesheetUser() removes DTD from doc

Hi all,

while investigating on a PHP bug[1], I found that
xsltApplyStylesheetUser() permanently removes the XML_DTD_NODE from the
given document (doc, 2nd parameter).  There is a respective comment[2]
in the implementation of xsltApplyStylesheetInternal() which points out
that this is done on purpose, but I wonder if this modification is
supposed to be *permanent*.  The documentation on
xsltApplyStylesheetUser()[3] is rather terse, and does not mention that
any modification to the given doc is supposed to happen, so I assumed
that doc is not modified in any way.

Could someone please clarify whether the current behavior is intentional?


[1] <https://bugs.php.net/66937>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]