[xsl] Using FO:Float

Subject: [xsl] Using FO:Float
From: "Jacqueline Radebaugh" <jrad@xxxxxxx>
Date: Thu, 02 Nov 2006 15:53:29 -0500
Hello:

I am currently writing a XSL-FO style sheet to convert a XML file into a PDF
document.

A small section of my XML is:

<change>
<description>
<p>Meeting or conference name used as a main entry in a bibliographic
record.</p>
<p>According to various cataloging rules, main entry under a meeting name is
assigned to works that contain proceedings, reports, etc.</p>
</description>
</change>

I am trying to use <fo:float> to create a vertical line that runs along the
left margin of the text surrounded by the <change> element.

I would like my output to resemble:

| Meeting or conference name used as a main entry in a bibliographic record.
| According to various cataloging rules, main entry under a meeting name is
assigned   | to works that contain proceedings, reports, etc.

My current XSL-FO template for the <change> element is:

<xsl:template match="change">
<fo:float float="left">
<fo:block-container>
<fo:block>
<fo:character character="&#x2758;" font-family="ZapfDingbats"/>
<xsl:apply-templates select="@* | *[contains(@type, $my_version) or
string-length(@type)=0] | text()"/>
</fo:block>
</fo:block-container>
</fo:float>
</xsl:template>

Unfortunately, using this template, my output resembles (where the vertical
line is above the text):

|
Meeting or conference name used as a main entry in a bibliographic record.
According to various cataloging rules, main entry under a meeting name is
assigned to works that contain proceedings, reports, etc.

How can I write the template so that the vertical line runs along the left
margin of each line of text that is surrounded by the <change> element in the
XML?

I am using RenderX XEP.

Thank you very much for your help!  I sincerely appreciate it!


Best wishes,





Jackie Radebaugh

Library of Congress
Network Development & MARC Standards Office
Washington, DC
USA
Phone:  +1-202-707-1153
FAX:  +1-202-707-0115
E-Mail:  jrad@xxxxxxx

Current Thread