I'm trying to affect the properties of the fo:list-block within a docbook 5 procedure. What I want to do is take the following docbook XML code:
<procedure>
<title>Eating a banana</title>
<step><para>Find banana</para></step>
<step><para>Peel banana</para></step>
<step><para>Stick banana in mouth</para></step>
<procedure>
and affect the FO output of just the steps (a list), not the title.
Using this:
<xsl:template match="d:procedure">
<fo:block border-left-width="1pt" border-left-style="solid" padding-left="0.25in">
<xsl:apply-imports />
</fo:block>
</xsl:template>
Gets me something like this:
|
| Procedure 1: Eating a banana
| 1. Find banana
| 2. Peal banana
| 3. Stick banana in mouth
|
What I'm trying to get is:
Procedure 1: Eating a banana
| 1. Find banana
| 2. Peal banana
| 3. Stick banana in mouth
Trying to match to <step>
is invalid, since docbook turns those into fo:list-block (fo:block
as a descendant of fo:list-block
generates an "invalid child" error).
Docbook has a xsl:attribute-set for <procedures>
, but as far as I can tell, that can only be used to style the entire block (similar to the template match='d:procedure', not just the list.