The *slightest* of tweaks (preface/section to preface//section) and it's all lovely.
Thanks, Jeff. -----Original Message----- From: Bob Stayton [mailto:[email protected]] Sent: Thursday, December 10, 2009 11:26 PM To: David Cramer; Jeff Hooker; [email protected] 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 [email protected] ----- Original Message ----- From: "David Cramer" <[email protected]> To: "Jeff Hooker" <[email protected]>; <[email protected]> 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:[email protected]] > Sent: Thursday, December 10, 2009 6:29 PM > To: [email protected] > 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: [email protected] > For additional commands, e-mail: > [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
