我一直使用htmlhelp xsl来生成我的htmlhelp文件。直到昨天,指数还在那里。但从今天开始,我在index.hhk文件中看不到任何条目。我正在使用xsltproc来生成我的html帮助文件。这是我的测试xml脚本。
<?xml version='1.0'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/
docbookx.dtd">
<book lang="en">
<bookinfo><title>My first DocBook document</title></bookinfo>
<chapter>
<title>TEST DOCBOOK</title>
<note>
<title>This is Note<indexterm><primary>Note</primary></
indexterm></title>
<para>This is test.</para>
</note>
</chapter>
<index/>
</book>我使用xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/htmlhelp/ htmlhelp.xsl test.xml将xml文件转换为htmlhelp文件。
现在,我的index.hhk文件始终是这样的。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft® HTML Help Workshop 4.1">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<OBJECT type="text/site properties">
</OBJECT>
<UL>
</UL>
</BODY></HTML>我不知道这里出了什么问题。请帮帮忙。
谢谢。
发布于 2020-06-24 18:42:51
如果您想用提取的索引项填充hhk,则需要将字符串参数htmlhelp.use.hhk设置为1。
如果htmlhelp.use.hhk设置为0,则样式表会将与上面示例类似的对象元素插入到每个indexterm的HTML输出中。如果参数设置为零,您仍然会得到一个index.hhk文件,但它几乎是空的。
我刚刚检查过了,很明显它工作正常。
很抱歉来晚了5年零4个月。
https://stackoverflow.com/questions/28174708
复制相似问题