You can create a new template and use an XSL match pattern to select the first para
after a title, and then do something different with it. It would look something like
this:
<xsl:template match="d:para[preceding-sibling::*[1][self::d:title]]">
<fo:block>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
the "preceding-sibling::*[1] selects the first element that precedes the para, and the
[self::d:title] tests whether that element is a title. Be sure to get the nesting of
square brackets right.
Bob Stayton
Sagehill Enterprises
b...@sagehill.net
----- Original Message -----
From: "Tom Browder" <tom.brow...@gmail.com>
To: "Mauritz Jeanson" <m...@johanneberg.com>
Cc: <docbook@lists.oasis-open.org>
Sent: Saturday, July 17, 2010 6:51 AM
Subject: Re: [docbook] Newbie Mark Up Complaints
On Wed, Jul 7, 2010 at 09:50, Mauritz Jeanson <m...@johanneberg.com> wrote:
...
| 4. Have the first line of a series of paragraphs in a section not
| indented but the rest indented.
...
DocBook example:
http://www.mail-archive.com/docbook@lists.oasis-open.org/msg04957.html
That message gives a solution for indenting normal paras.:
<xsl:attribute-set name="standard.para.spacing">
<xsl:attribute name="text-indent">24pt</xsl:attribute>
</xsl:attribute-set>
<xsl:template match="d:para">
<fo:block xsl:use-attribute-sets="standard.para.spacing">
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
Now, how would one add a template (or modify an existing one) to
eliminate the first-line indent just for paras immediately following a
<title>?
Thanks.
-Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org