Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Capturing an image and caption together

From: ScrawnyPaleGuy@-----.---
To: 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.



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent