Pb in xi:include with xpointer
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Pb in xi:include with xpointer
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
Looking more into this.... You can use the XInclude support of XSLTProc that has also XPointer support. You can just duplicate the standard DocBook PDF scenario and change the Transformer to Xsltproc and you should be able to get exactly what you need, the first document and only that section from the included document.
Best Regards,
George
Best Regards,
George
it works! but...
it works :-)_______)
but with some errors:
W Invalid URI: file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod temp.xml file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp.xml 3:0
W file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp.xml:4: parser warning : PEReference: %xinclude; not found 0:0
W %xinclude; 0:0
W ^ 0:0
W Invalid URI: file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod temp2.xml file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp2.xml 3:0
W file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp2.xml:4: parser warning : PEReference: %xinclude; not found 0:0
W %xinclude; 0:0
W ^ 0:0
W Making portrait pages on A4 paper (210mmx297mm) 0:0
any idea?
but with some errors:
W Invalid URI: file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod temp.xml file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp.xml 3:0
W file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp.xml:4: parser warning : PEReference: %xinclude; not found 0:0
W %xinclude; 0:0
W ^ 0:0
W Invalid URI: file:/E:\Dev\Projets\DocMaker\kaleidoc\app\xinclude.mod temp2.xml file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp2.xml 3:0
W file:///E%3A/Dev/Projets/DocMaker/kaleidoc/app/temp2.xml:4: parser warning : PEReference: %xinclude; not found 0:0
W %xinclude; 0:0
W ^ 0:0
W Making portrait pages on A4 paper (210mmx297mm) 0:0
any idea?
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service