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: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Bob Stayton' <bobs at sco dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 14 Mar 2003 13:32:02 -0500
- Subject: RE: DOCBOOK-APPS: Wrap text around images in PDFs, using xsl:fo
Apparently I need to pay more attention to the latest versions of the DTD.
;) (I really need to upgrade ours some day -- still using 3.something.)
-----Original Message-----
From: Bob Stayton [mailto:bobs at sco dot com]
Sent: Friday, March 14, 2003 1:27 PM
To: Jeff Beal
Cc: 'Claus Rasmussen'; docbook-apps at lists dot oasis-open dot org
Subject: Re: DOCBOOK-APPS: Wrap text around images in PDFs, using xsl:fo
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