This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]