Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Capturing an image and caption together [Thread Next] Re: Capturing an image and caption togetherTo: NULL Date: 8/8/2006 12:55:00 PM > XSLT is not a language you can pick up easily without sitting down first and > reading the manual. I've found that for simple editing a reference book is about all that I need. > Well you need to show some of the source XML where the image data is held > and the current XSLT that handles that section. The XML is something like: <figure> <title> Figure 4.2 </title> <mediaobject><imageobject><imagedata fileref=images/fig42.jpg> </imageobject></mediaobject></figure> However, with persistent research I have found out that what I want is to add a break-before="page" to each fo:block for the images. I put together a template in my customization layer that almost solves this: <xsl:template match="I'mtryingtofigureoutwhattoputhere"> <fo:block break-before="page" /> </xsl:template> Unfortunately, I'm having little luck figuring out what to use for the match. I know this is what I need to do because I did a simple edit on the *.fo file, editing in the previously mentioned break-before into the relevant fo:block, and remaking the PDF. It gave exactly the result I was trying to create. Any idea on what I should use for my match? And would keep-together or keep-with-next help? > Then show what output you desire. I think I was fairly clear on what output I desire. An image and a caption, in this case, a title, on the same page without a page break in between. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
