[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] quite processing output - hiding "computing chunks ..."
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 bobs@sagehill.net ----- Original Message ----- From: "Stefan Kost" <ensonic@hora-obscura.de> To: <docbook-apps@lists.oasis-open.org> 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: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]