After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344240 - include the other part of the same file is not a recursion
include the other part of the same file is not a recursion
Status: RESOLVED DUPLICATE of bug 324081
Product: libxml2
Classification: Platform
Component: xinclude
2.6.x
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2006-06-08 05:44 UTC by Qiao Zhiqiang
Modified: 2020-08-17 21:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Qiao Zhiqiang 2006-06-08 05:44:59 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.
Comment 1 Nick Wellnhofer 2020-08-17 21:50:22 UTC

*** This bug has been marked as a duplicate of bug 324081 ***