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 343968 - XInclude error : detected a recursion when parse="text"
XInclude error : detected a recursion when parse="text"
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
2.4.13
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-06 02:13 UTC by Qiao Zhiqiang
Modified: 2006-06-06 08:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Qiao Zhiqiang 2006-06-06 02:13:18 UTC
Please describe the problem:
XInclude error : detected a recursion when parse="text", 
It should not be a recursion when parse="text"?

Windows XP:
xsltproc.exe --version
Using libxml 20624CVS2773, libxslt 10116CVS1050 and libexslt 813CVS1050
xsltproc was compiled against libxml 20624, libxslt 10116 and libexslt 813
libxslt 10116 was compiled against libxml 20624
libexslt 813 was compiled against libxml 20624

Steps to reproduce:
file "test_include.xml" include itself use parse="text":
===========================
<?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> this book source </title>
   <example>
     <title> source </title>
     <programlisting>
       <xi:include href="test_include.xml" parse="text" encoding="utf-8"
        xmlns:xi="http://www.w3.org/2003/XInclude"/>
     </programlisting>
   </example>
 </chapter>
</book>



Actual results:
xsltproc report:
xsltproc.exe --xinclude --path C:\DocBook\DocBook-xsl\html  \
        -o "test.html" \
                C:\DocBook\docbook-xsl\html\docbook.xsl test_include.xml
test_include.xml:12: element include: XInclude error : detected a recursion in t
est_include.xml
ID recommended on chapter:  this book source
ID recommended on example:  source
No template matches xi:include in programlisting.

Expected results:
xsltproc does not check recursion when include with parameter parse="text".

Does this happen every time?
YES.

Other information:
Comment 1 Daniel Veillard 2006-06-06 08:22:37 UTC
Hum, right, that's a genuine bug :-)
But it's a libxml2 bug, not a libxslt one. Fixed in CVS,

Daniel