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
----- Original Message -----
From: "David Cramer" <>
To: "Jeff Hooker" <>;
<>
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:]
> Sent: Thursday, December 10, 2009 6:29 PM
> To:
> 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:
> For additional commands, e-mail:
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
For additional commands, e-mail: