Large space btwn note image and text
Posted: Sat Jun 27, 2009 10:00 am
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.
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
<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>
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