[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Suppressing section labels in preface elements (FO output)
The *slightest* of tweaks (preface/section to preface//section) and it's all lovely. Thanks, Jeff. -----Original Message----- From: Bob Stayton [mailto:bobs@sagehill.net] Sent: Thursday, December 10, 2009 11:26 PM To: David Cramer; Jeff Hooker; docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] Suppressing section labels in preface elements (FO output) Hi David, I don't think that will work. Unlike attributes in attribute-sets, a global param like section.autolabel is evaluated only once, before any templates are applied. However, this hack works: <xsl:template match="preface/section" mode="object.title.markup"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:template> The 'object.title.markup' mode is used to generate the title. Normally the mode="object.title.markup" looks up a gentext template for the title and then fills in the number and title. Because section numbers are turned on, the gentext template includes %n for the section number. This specialized version short circuits that process and just generates the title. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "David Cramer" <dcramer@motive.com> To: "Jeff Hooker" <Jeff_Hooker@pmc-sierra.com>; <docbook-apps@lists.oasis-open.org> Sent: Thursday, December 10, 2009 7:40 PM Subject: RE: [docbook-apps] Suppressing section labels in preface elements (FO output) I think this would do it: <xsl:param name="section.autolabel"> <xsl:choose> <xsl:when test="ancestor::preface">0</xsl:when> <xsl:otherwise>1</xsl:otherwise> </xsl:choose> </xsl:param> David > -----Original Message----- > From: Jeff Hooker [mailto:Jeff_Hooker@pmc-sierra.com] > Sent: Thursday, December 10, 2009 6:29 PM > To: docbook-apps@lists.oasis-open.org > Subject: [docbook-apps] Suppressing section labels in preface > elements (FO output) > > Hi all, > > Is there already a parameter established for suppressing > section labels within prefaces? I've looked, to no avail. > > Barring that, anybody know of a quick way of doing it? I'm > inches away from just tranforming the section/titles into > bridgeheads and moving on. > > Cheers, > Jeff. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: > docbook-apps-help@lists.oasis-open.org > > --------------------------------------------------------------------- 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]