GNOME Bugzilla – Bug 344240
include the other part of the same file is not a recursion
Last modified: 2020-08-17 21:50:22 UTC
Please describe the problem: we only include "id.sect1", the other part of this file, so I think it is not a recursion. Steps to reproduce: 1. =============file test_include.xml============== <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5CR2//EN" "c:/docbook/docbook-xml/docbookx.dtd"> <book> <chapter> <title> chapter 1 </title> <para> chapter 1 para </para> <sect1 id="id.sect1"> <title> sect1 1 </title> <para> sect1 para </para> </sect1> </chapter> <chapter> <title> chapter 2 </title> <para> we only include "id.sect1", the other part of this file, so I think it is not a recursion.</para> <xi:include href="test_include.xml" xpointer ="id.sect1" xmlns:xi="http://www.w3.org/2003/XInclude"/> </chapter> </book> Actual results: error: test_include.xml:22: element include: XInclude error : detected a recursion in t est_include.xml Expected results: include ok Does this happen every time? YES Other information: check a recursion not only href but also xpointer if it existed.
*** This bug has been marked as a duplicate of bug 324081 ***