Large space btwn note image and text

Here should go questions about transforming XML with XSLT and FOP.
uncia2x
Posts: 1
Joined: Sat Jun 27, 2009 9:19 am

Large space btwn note image and text

Post by uncia2x »

Hi,

<oXygen/> newbie here, with a little PDF output formatting issue.

I generated a PDF from a DITA topic map using Idiom and the Apache FO processor. The PDF looks good, except for a large gap in between the note image and the note text. The note image is left-aligned with the rest of the page text, but the note text block is in the middle of the page.

I don't understand this formatting quirk--the topics are validated, and I didn't touch any code in the relevant .../fo/attrs *.xls files. Just selected the Idiom configuration scenario, clicked the Transform Now button, and generated the PDF.

The issue seems like either 1) the note image spacing attributes, or 2) I haven't tagged the note text properly.

1. Below is the code from the common-attrs.xsl file--it looks good, and nothing that would cause a huge gap between image and text.

Code: Select all

<xsl:attribute-set name="note__image__entry">
<xsl:attribute name="padding-right">5pt</xsl:attribute>
<xsl:attribute name="start-indent">0pt</xsl:attribute>
</xsl:attribute-set>

<xsl:attribute-set name="note__text__entry">
<xsl:attribute name="start-indent">0pt</xsl:attribute>
</xsl:attribute-set>

<xsl:attribute-set name="note__label">
<xsl:attribute name="border-left-width">0pt</xsl:attribute>
<xsl:attribute name="border-right-width">0pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
2. When I wrapped the note text in <p> tags, that didn't help either. And there's no child "note text" tag...

Is this possibly an issue using Idiom with Apache FO, instead of using Idiom with XEP? Or do I need to fix something in another .xsl file somewhere?

TIA
Radu
Posts: 9440
Joined: Fri Jul 09, 2004 5:18 pm

Re: Large space btwn note image and text

Post by Radu »

Hi,

Thank you for contacting us.
A sample topic file would be great. Maybe even with a screenshot with what you expect.
You can find our support email address here:
http://www.oxygenxml.com/techSupport.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply