This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: DOCBOOK: <step> number and content on different lines
- From: David Cramer <dcramer at broadjump dot com>
- To: David Cramer <dcramer at broadjump dot com>,"O'Donnell, Vincent" <vodonnell at accentopto dot com>, docbook at lists dot oasis-open dot org,docbook-apps at lists dot oasis-open dot org
- Date: Fri, 10 May 2002 11:42:23 -0500
- Subject: DOCBOOK-APPS: RE: DOCBOOK: <step> number and content on different lines
Ok, this should fix it. Just adjust the xsl:import so that it points to
the 1.50.x xsls you're using and run your processor using this as the
xsl.
Oh, and, btw., I just realized :) that this whole thread should be on
docbook-apps (the list for tools related questions). Please post
follow-ups there.
<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version='1.0'>
<xsl:import href="../../../../../DocBookXSL/1.50.0/fo/docbook.xsl"/>
<xsl:template match="step">
<xsl:variable name="id"><xsl:call-template
name="object.id"/></xsl:variable>
<fo:list-item id="{$id}" xsl:use-attribute-sets="list.item.spacing">
<!-- moving list.item.spacing here for fop -->
<fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:choose>
<xsl:when test="count(../step) = 1">
<xsl:text>•</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="number">
<xsl:with-param name="recursive" select="0"/>
</xsl:apply-templates>.
</xsl:otherwise>
</xsl:choose>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<xsl:apply-templates/>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
<!-- adding step/para[1] -->
<xsl:template match="listitem/para[1]
|listitem/simpara[1]
|listitem/formalpara[1]
|step/para[1]
|callout/para[1]
|callout/simpara[1]
|callout/formalpara[1]"
priority="2">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
</xsl:stylesheet>
> > -----Original Message-----
> > From: O'Donnell, Vincent [mailto:vodonnell@accentopto.com]
> > Sent: Friday, May 10, 2002 6:13 AM
> > To: docbook@lists.oasis-open.org
> > Subject: RE: DOCBOOK: <step> number and content on different lines
> >
> >
> > (using stylesheets 1.50)
> > I don't think I am using a customization layer, but here is
> > an example of
> > the offending fo,
>
> >
> >
> > I don't understand all the things in there (know where I can get
> > explanations?) - I think it looks like it should work ok,
> > although I wonder
> > what the label end-indent and the body start-indent are doing??
> >
> > If this should be ok, does it mean that fop is making the
> > mess? Can anyone
> > else try this chunk on their setup?
> >
> > tamuch
> >
>