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
[email protected]
----- Original Message -----
From: "Tom Browder" <[email protected]>
To: "Mauritz Jeanson" <[email protected]>
Cc: <[email protected]>
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 <[email protected]> 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/[email protected]/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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]