Pb in xi:include with xpointer
Posted: Sat Mar 12, 2005 11:00 pm
The following
o does not convert to Docbook PDF (makes an error
"page-sequence must be child of root, not fo:flow"),
o convert to DocBook HTML but the whole file is included.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.docbook.org/xml/4.3/docbookx.dtd"
[ <!ENTITY % xinclude SYSTEM "file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod">
%xinclude;
]>
<book>
<title>Essai include</title>
<chapter>
<title>Introduction</title>
<para>Hello before</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href='temp2.xml' xpointer='myID' />
<para>Hello after</para>
</chapter>
</book>
temp2.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.docbook.org/xml/4.3/docbookx.dtd"
[ <!ENTITY % xinclude SYSTEM "file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod">
%xinclude;
]>
<book>
<title>Essai include</title>
<chapter>
<title>Introduction</title>
<section id='myID'>
<title>KPage.removeOptionForAction()</title>
<para><emphasis role='bold'>C) removeOptionForAction(long action, Option* o)</emphasis></para>
<para><emphasis role='bold'>J) (not yet implemented)</emphasis></para>
<para>Removes the first association (action, option) found from the map. If the same (key, value) association is added more than once, only one of them will be removed.</para>
</section>
</chapter>
</book>
What is wrong with my files?
NiS
o does not convert to Docbook PDF (makes an error
"page-sequence must be child of root, not fo:flow"),
o convert to DocBook HTML but the whole file is included.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.docbook.org/xml/4.3/docbookx.dtd"
[ <!ENTITY % xinclude SYSTEM "file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod">
%xinclude;
]>
<book>
<title>Essai include</title>
<chapter>
<title>Introduction</title>
<para>Hello before</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href='temp2.xml' xpointer='myID' />
<para>Hello after</para>
</chapter>
</book>
temp2.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.docbook.org/xml/4.3/docbookx.dtd"
[ <!ENTITY % xinclude SYSTEM "file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod">
%xinclude;
]>
<book>
<title>Essai include</title>
<chapter>
<title>Introduction</title>
<section id='myID'>
<title>KPage.removeOptionForAction()</title>
<para><emphasis role='bold'>C) removeOptionForAction(long action, Option* o)</emphasis></para>
<para><emphasis role='bold'>J) (not yet implemented)</emphasis></para>
<para>Removes the first association (action, option) found from the map. If the same (key, value) association is added more than once, only one of them will be removed.</para>
</section>
</chapter>
</book>
What is wrong with my files?
NiS