The patch makes sense. But on further investigation, I find that DocBook XSL has two
top-level params that do the same thing: turn off the chunk filename messages. We
have:
$chunk.quietly (added in 2002 and documented)
$chunker.output.quiet (added in 2005 and not documented)
They are used inconsistently, so I believe the second one was added without knowledge
of the first. I'm going to remove $chunker.output.quiet and use $chunk.quietly
exclusively in the next release. Since $chunker.output.quiet was not documented,
removing it should not have a great impact, no?
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Stefan Kost" <[email protected]>
To: <[email protected]>
Sent: Thursday, April 14, 2011 12:46 AM
Subject: [docbook-apps] quite processing output - hiding "computing chunks ..."
hi,
I am working on a rather cosmetic feature request for gtk-doc:
https://bugzilla.gnome.org/show_bug.cgi?id=590927
In order to have a silent build output if desired I am already passing
these variable to the xsltprocessor.
chunk.quietly $quiet
chunker.output.quiet $quiet
Still I get one line: "Computing chunks..." comming from
Would it make sense to apply something like the patch below?
Stefan
--- chunk-common.xsl.orig 2011-04-14 10:42:19.497446000 +0300
+++ chunk-common.xsl 2011-04-14 10:45:08.741446000 +0300
@@ -30,14 +30,18 @@
<xsl:if test="$chunk.fast != 0">
<xsl:choose>
<xsl:when test="$exsl.node.set.available != 0">
- <xsl:message>Computing chunks...</xsl:message>
+ <xsl:if test="$chunker.output.quiet = 0">
+ <xsl:message>Computing chunks...</xsl:message>
+ </xsl:if>
<xsl:apply-templates select="/*" mode="find.chunks"/>
</xsl:when>
<xsl:otherwise>
- <xsl:message>
- <xsl:text>Fast chunking requires exsl:node-set(). </xsl:text>
- <xsl:text>Using "slow" chunking.</xsl:text>
- </xsl:message>
+ <xsl:if test="$chunker.output.quiet = 0">
+ <xsl:message>
+ <xsl:text>Fast chunking requires exsl:node-set(). </xsl:text>
+ <xsl:text>Using "slow" chunking.</xsl:text>
+ </xsl:message>
+ </xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]