xinclude.c doesn't resolve nested includes (regression in 2.9.11)
Given nested.xml as
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<p>Something</p>
<d><xinclude:include xpointer="xpointer(//p)"/></d>
<xinclude:include xpointer="xpointer(//d)"/>
</x>
Running xmllint --xinclude nested.xml
(built with XPTR, XPATH and XPTR_LOCS) results in
<?xml version="1.0"?>
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<p>Something</p>
<d><p>Something</p></d>
<d xmlns:xinclude="http://www.w3.org/2001/XInclude"><xinclude:include xpointer="xpointer(//p)"/></d>
</x>
This is a regression in 2.9.11, specifically probably 74dcc10b. In 2.9.10, the result is the expected
<?xml version="1.0"?>
<x xmlns:xinclude="http://www.w3.org/2001/XInclude">
<p>Something</p>
<d><p>Something</p></d>
<d xmlns:xinclude="http://www.w3.org/2001/XInclude"><p>Something</p></d>
</x>
Edited by yoerg