This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Mon, Aug 04, 2003 at 11:44:34AM +1200, Grant McLean wrote:So perhaps the test should be:
<xsl:if test="contains($toc.params, 'toc') or $toc = '1'"> <xsl:call-template name="process.qanda.toc"/> </xsl:if>
Generally in the stylesheets, local values can be used to override the global value. So I would suggest this logic instead:
<xsl:if test="(contains($toc.params, 'toc') and $toc != '0') or $toc = '1'">
That way, if $toc.params turns it on globally you can turn it off for one instance by setting a PI to zero. Absense of the PI or any other value will leave it to the global value.
Regards Grant
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |