如何在 docbook 中使用 `chunk.quietly`?
How to use `chunk.quietly` in docbook?
我正在尝试按照记录的 chunk.quietly (and also here) 减少 XSL 转换的冗长程度。然而,这对我来说仍然失败:
$ /usr/bin/xsltproc --stringparam chunk.quietly 1 man/gdcmdiff.xml
Note: Writing gdcmdiff.1
gdcmdiff.xml is a simple refentry 手册页:
$ head -4 man/gdcmdiff.xml
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl" ?>
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink">
<info>
因为您使用的是 http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl stylesheet, for quiet output you need to use the man.output.quietly
param (the chunk.quietly
param 仅影响 HTML 输出)。
我正在尝试按照记录的 chunk.quietly (and also here) 减少 XSL 转换的冗长程度。然而,这对我来说仍然失败:
$ /usr/bin/xsltproc --stringparam chunk.quietly 1 man/gdcmdiff.xml
Note: Writing gdcmdiff.1
gdcmdiff.xml is a simple refentry 手册页:
$ head -4 man/gdcmdiff.xml
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl" ?>
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink">
<info>
因为您使用的是 http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl stylesheet, for quiet output you need to use the man.output.quietly
param (the chunk.quietly
param 仅影响 HTML 输出)。