OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] XSL: No toc for qandaset


Bob Stayton wrote:
> 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.

Sounds good to me.

Regards
Grant




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]