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]

Re: [docbook-apps] rules for different classes


Bob Stayton wrote:
> Thomas Gier wrote:
> > Guy Worthington wrote:

> > > [How do I turn off header rule on the
> > >  first page of a chapter?]

> > [Working solution provided]

> If you look at the bottom of the header.table
> template, you will find a xsl:choose statement
> that provides an opportunity to output the candidate
> table or not.  If you want to suppress the header
> on certain page classes or sequences, you can add
> xsl:when statements for additional cases.  That can
> be used to suppress the entire header table,
> including its content and rule.

This is useful.  Currently in my "footer.content"
template I've exhaustive lists of empty elements
such as:

<xsl:when test="$sequence = 'odd' and $position = 'left'" />
<xsl:when test="$sequence = 'odd' and $position = 'center'" />
<xsl:when test="$sequence = 'odd' and $position = 'right'" />
<xsl:when test="$sequence = 'even' and $position = 'left'" />
<xsl:when test="$sequence = 'even' and $position = 'center'" />
<xsl:when test="$sequence = 'even' and $position = 'right'" />

which is tedious and error prone.  I much prefer
to just turn off my footer.

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]