读书人

DOCBOOK 转化为HTMLchm遇到的有关问

发布时间: 2012-03-26 15:46:55 作者: rapoo

DOCBOOK 转化为HTML,chm遇到的问题,请留步看一下
docbook转化的时候遇到 Element include in namespace 'http:www.w3.org/2001/XInclde' encountered in book,but no template matches 异常

其实就是主文档用到 <xi:include href="OneChapter.xml" xpointer="element(/1)" />引入子文档。

主文档如下:<?xml version="1.0" encoding="UTF-8"?>

<book version="5.0" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:db="http://docbook.org/ns/docbook">
<info>
<title>docbook 分章节转化例子</title>

<author>
<personname><firstname>路建</firstname><surname></surname></personname>

<affiliation>
<orgname></orgname>
</affiliation>
</author>

<pubdate>2009-11-5</pubdate>
</info>

<xi:include href="OneChapter.xml" xpointer="element(/1)" />

<xi:include href="OneChapter.xml" xpointer="element(/1)" />

<xi:include href="OneChapter.xml" xpointer="element(/1)" />
</book>
不知道此种类型的docbook文档该如何转化为html和chm。 有做过的朋友支持一下哈。。
现在转化完事下面的样子:



docbook 分章节转化例子
路建


2009-11-5


--------------------------------------------

<xi:include></xi:include> <xi:include></xi:include> <xi:include></xi:include>


[解决办法]
加一个--xinclude参数就可以了。

读书人网 >XML SOAP

热点推荐