Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Let' say I have two documents:
1) "a.xml":
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="a-book" version="5.0"> <title>A</title> <chapter xml:id="a-chapter"> <title>a chapter</title> <para>foo</para> </chapter> <xi:include href="b.xml" xpointer="b-chapter"/> </book>
2) "b.xml":
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="b-book" version="5.0"> <title>B</title> <chapter xml:id="b-chapter"> <title>b chapter</title> <para>foo</para> </chapter> <xi:include href="a.xml" xpointer="a-chapter"/> </book>
When using a SAX parser to parse "a.xml" a stack overflow occurs although according to the XInclude specs this is a legal situation, the xpointer parts to a part of b.xml.