This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] A two-column problem
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Kenneth Johansson' <ke-joh at sectra dot se>, DOCBOOK-APPS <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 27 Aug 2003 08:53:14 -0400
- Subject: RE: [docbook-apps] A two-column problem
Anything's possible ;)
The trick for this is to set the attibute span="all" on the fo:block
elements that contain the title and the closing remark. The difficulty with
this is that the element containing this attribute *must* be a direct child
of the fo:flow object.
To do this for the article title, you'll have to copy the template that
matches article from fo/component.xsl and change the lines
<fo:block id="{$id}">
<xsl:call-template name="article.titlepage"/>
</fo:block>
to
<fo:block id="{$id}" span="all">
<xsl:call-template name="article.titlepage"/>
</fo:block>
I don't know how she plans to tag her "closing remark", but the idea will be
to create a template similar to the following:
<xsl:template match="section[@role='closing']">
<fo:block span="all">
<xsl:apply-imports/>
</fo:block>
</xsl:template>
Jeff Beal
> -----Original Message-----
> From: Kenneth Johansson [mailto:ke-joh@sectra.se]
> Sent: Wednesday, August 27, 2003 5:51 AM
> To: DOCBOOK-APPS
> Subject: [docbook-apps] A two-column problem
>
>
> Hi,
>
> I've got a friend who wants to use two-column layout in an
> article. She wishes to have the title in a single column, the
> body text in two columns and a concluding remark after the
> body text in a single column.
>
> Is this possible by tweaking the XSL stylesheets?
>
> best regards,
>
> /Kenneth
>
> --------------------------------------------------------
> Kenneth Johansson Technical Documentation Manager
> Sectra Imtec AB
> Teknikringen 2 E-mail: ke-joh AT sectra DOT se
> SE-583 30 Linköping Phone: +46 13 23 52 00
> SWEDEN Web: http://www.sectra.se
>
>
> To unsubscribe from this list, send a post to
> docboook-apps-unsubscribe@lists.oasis-open.org.
>
>
>
To unsubscribe from this list, send a post to docboook-apps-unsubscribe@lists.oasis-open.org.