This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Wrap text around images in PDFs, using xsl:fo
- From: Bob Stayton <bobs at sco dot com>
- To: Jeff Beal <jeff dot beal at ansys dot com>
- Cc: 'Claus Rasmussen' <clr at interse dot com>, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 14 Mar 2003 10:26:31 -0800
- Subject: Re: DOCBOOK-APPS: Wrap text around images in PDFs, using xsl:fo
- References: <E08C8F26F6901D42B1201763D125853815B5F8@ntdevexc.win.ansys.com>
On Fri, Mar 14, 2003 at 10:11:39AM -0500, Jeff Beal wrote:
> Oh. In that case, I think you can quite legitimately point fingers at both
> DocBook and FOP. I just checked FOP's website, and they do not suppor the
> <fo:float/> formatting object. However, there's also nothing in the DocBook
> DTD or in Norm's stylesheets to output an <fo:float/>. It certainly seems
> that with your particular tool chain, floats are at the moment impossible.
>
> If you were to switch FO formatters, I could envision a stylesheet
> customization along the lines of
>
> <xsl:template match="inlinemediaobject[ at role='floatleft']">
> <fo:float float="left">
> <xsl:apply-imports/>
> </fo:float>
> </xsl:template>
>
> that would work. For now, though, there's nothing in DocBook to support
> floating images. (It might make a nice RFE, though.)
Actually, the DocBook Technical Committee approved
RFE 615473 on 19 November 2002 to extend 'float' in
the DTD. In 4.2, there is just a 'float = yes|no'
attribute on figure. We added a 'floatstyle' attribute to figure,
example, table, and equation, of type CDATA with the
documentation saying that it is expected to be a
keyword that a stylesheet could act upon.
Once that change is released in a new DTD version,
the stylesheets can be modified to work with it.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs at sco dot com