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: 'Claus Rasmussen' <clr at interse dot com>, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 14 Mar 2003 10:11:39 -0500
- Subject: RE: DOCBOOK-APPS: Wrap text around images in PDFs, using xsl:fo
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.)
Jeff
-----Original Message-----
From: Claus Rasmussen [mailto:clr at interse dot com]
Sent: Friday, March 14, 2003 9:37 AM
To: docbook-apps at lists dot oasis-open dot org
Subject: RE: DOCBOOK-APPS: Wrap text around images in PDFs, using xsl:fo
Jeff,
Thanks for your snappy reply.
I should have been clearer in my question - I actually meant, whether
such behavior is supported by the docbook xsl style sheets for fo,
because that's where I can't get it to work.
I'm using FOP - is that the sinner here, or is it not supported at the
style sheet level?
/claus
> -----Original Message-----
> From: Jeff Beal [mailto:jeff dot beal at ansys dot com]
> Sent: 14. marts 2003 15:33
> To: Claus Rasmussen; docbook-apps at lists dot oasis-open dot org
> Subject: RE: DOCBOOK-APPS: Wrap text around images in PDFs, using
xsl:fo
>
> You'll need to place the image inside of a <fo:float/> element.
>
> -----Original Message-----
> From: Claus Rasmussen [mailto:clr at interse dot com]
> Sent: Friday, March 14, 2003 8:55 AM
> To: docbook-apps at lists dot oasis-open dot org
> Subject: DOCBOOK-APPS: Wrap text around images in PDFs, using xsl:fo
>
>
> Is subj. possible at all? I can create inline graphics, but only that
> one line of text will wrap around it. I'm looking for a look like what
> happens in HTML when you align an image to the left or to the right,
and
> the surrounding text wraps around it, like:
>
> +---------+
> | | blah, blah, text, blah, blah,
> | image | wrap..wrap..blah, blah, blah,
> | | blah, blah, clah, ajsldf alksdf
> +---------+ lakjsdf ljks sdlfjk lsjdfs kjsdf
> lkjsf slkdfj sdflkjsdf slfdkjsf lsdj
> ljk ljk sdf lksjdf sldjfls sljkfdsf lkjl
>
> Anyone?
>
> Best,
> Claus