最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】docbook中webhelp的titlepage的内容和html,pdf相比缺少摘要abstract内容

Docbook crifan 2448浏览 0评论

【,问题】

之前已经实现了html,pdf,以及webhelp。

最近发现个问题:

webhelp显示的主界面,即titlepage的内容中,和html,pdf等等不一样。

html,pdf是:

html titlepage contain note and rev history

pdf titlepage also contain note and rev history

而webhelp是:

webhelp not note table info

很明显,缺少了note部分的信息。

现在要想办法加上,使得webhelp和html,pdf等输出格式保持一致。

【解决过程】

1.很明显,是titlepage的设置不同。所以去找找webhelp的titlepage的配置。

2.经过比较发现:

new webhelp titlepage lack abstract

新的1.78.1中的我所用的webhelp的titlepage的配置中,对于book,少了个abstract,且顺序和html,pdf等所用的titlepage的配置也不同。

所以去统一成相同的配置。

即,把

E:\Dev_Root\docbook\dev\config\docbook-xsl-ns-1.78.1\webhelp\titlepage.templates_crl.xml

中的book部分配置改为html中的:

<!-- ==================================================================== -->

<t:titlepage t:element="book" t:wrapper="div" class="titlepage">
  <t:titlepage-content t:side="recto">
    <title/>
    <revision/>
    <releaseinfo/>
    <subtitle/>
    <corpauthor/>
    <authorgroup/>
    <author/>
    <abstract/>
    <pubdate/>
    <revhistory/>
    <othercredit/>
    <copyright/>
    <legalnotice/>
    
  </t:titlepage-content>

  <t:titlepage-content t:side="verso">
  </t:titlepage-content>

  <t:titlepage-separator>
    <hr/>
  </t:titlepage-separator>

  <t:titlepage-before t:side="recto">
  </t:titlepage-before>

  <t:titlepage-before t:side="verso">
  </t:titlepage-before>
</t:titlepage>

然后再去重新生成xsl:

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/docbook/dev/config/docbook-xsl-ns-1.78.1/webhelp
$ xsltproc --output titlepage.templates_crl.xsl E:/Dev_Root/docbook/tools/docbook-xsl-ns-1.78.1/template/titlepage.xsl titlepage.templates_crl.xml

Administrator@PC-20130611GART /cygdrive/e/Dev_Root/docbook/dev/config/docbook-xsl-ns-1.78.1/webhelp
$

3.再去重新生成webhelp看看效果。

然后就可以了:

now webhelp contain expected abstract info

即首页中包含了对应的摘要abstract部分的内容了。

 

【总结】

此处webhelp的titlepage中缺少abstract摘要部分的内容,是因为配置文件我此处所用的titlepage.templates_crl.xml中,book中少了abstract域。

加上后即可。同时记得要重新生成对应的xsl。

转载请注明:在路上 » 【已解决】docbook中webhelp的titlepage的内容和html,pdf相比缺少摘要abstract内容

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.177 seconds, using 22.34MB memory