Re: [docbook-apps] How can I exclude an "index" page sequence from being processed by an xsl:when statement?

From
Øystein Kleven <>
Date
2013-12-12T08:19:44+00:00
ID
Thread
Re: [docbook-apps] How can I exclude an "index" page sequence from being processed by an xsl:when statement?
Hi Bob,

    Simple and concise answer that works, as usual. Thanks a lot! For
    some reason I couldn't get that the parameter should be "pageclass".
    I used the section you refer to in your book when I originally
    created this customization, so I guess I should have thought about
    it. Thanks for taking the time to answer.

    

    For my solution, I didn't create a new xsl:when clause, I added the
    test directly in the existing one:

    

    <xsl:when test="$sequence = 'first' and $pageclass !=
    'index'">

    

    It worked.

    

    
On 11/12/2013 19:00, Bob Stayton wrote:

    

    You
      can create additional xsl:when clauses and use the 'pageclass'
      param passed to the footer.content template.  Something like
      test="contains($pageclass, 'index')" will be true when the
      page-sequence is for the index.
      

      

      The possible values of pageclass are described in this doc:
      

      

http://www.sagehill.net/docbookxsl/PrintHeaders.html#PrintHeadersText