Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the XML-LibXSLT CPAN distribution.

Report information
The Basics
Id: 131146
Status: new
Priority: 0/
Queue: XML-LibXSLT

Owner: Nobody in particular
Requestors: wellnhofer [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Returning documents from XPath extension functions
Date: Fri, 6 Dec 2019 16:24:17 +0100
To: bug-XML-LibXSLT [...]
From: Nick Wellnhofer <wellnhofer [...]>
Download (untitled) / with headers
text/plain 547b
The code in LibXSLT__function which handles XPath extension functions wraps returned nodes in another document for memory management reasons. If one of the returned nodes happens to be a document node, the document will be wrapped inside another document. This violates libxml2's assumption that document nodes can only be at the root of a tree and can lead to issues like The cleanest solution is to copy the document's children to the RVT and return the RVT in the result node list.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to