DOCBOOK 转化为HTML,chm遇到的问题,请留步看一下

luonly 2009-11-06 10:34:47
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>
...全文
165 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
cjsyr1818 2010-04-21
  • 打赏
  • 举报
回复
加一个--xinclude参数就可以了。
luonly 2009-11-09
  • 打赏
  • 举报
回复
解决了,加一个--xinclude参数就可以了。

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧