xsl-list
[Top] [All Lists]

[xsl] Using FO:Float

2006-11-02 13:53:35
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(_at_)loc(_dot_)gov



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>