GNOME Bugzilla – Bug 343968
XInclude error : detected a recursion when parse="text"
Last modified: 2006-06-06 08:22:37 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:
Hum, right, that's a genuine bug :-) But it's a libxml2 bug, not a libxslt one. Fixed in CVS, Daniel