W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2010

Figure display

From: NicolasS <nicolas.senechal@gmail.com>
Date: Tue, 23 Mar 2010 16:52:42 -0700 (PDT)
Message-ID: <28008844.post@talk.nabble.com>
To: www-xsl-fo@w3.org

Hi,

We want display figures made of an image and a title. The image has a fixed
width. My writers would like the title to have the same width as the image.
We are using DITA-OT with the fo plugin and the fop renderer. The generated
code looks like this:

<fo:block>
     <fo:inline>
           <fo:external-graphic content-width="300pt"
src="url(project\images\img1.jpg)"/>
      </fo:inline>
      <fo:block>Figure 1: Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
officia deserunt mollit anim id est laborum.</fo:block>
</fo:block>

Is there an easy way to achieve this?

Thanks,

Nic


-- 
View this message in context: http://old.nabble.com/Figure-display-tp28008844p28008844.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Tuesday, 23 March 2010 23:53:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 March 2010 23:53:12 GMT