[xep-support] Re: Floats spanning multiple pages

Kevin Brown kevin at renderx.com
Thu May 5 13:26:26 PDT 2016


Well that is totally up to customizing an XSL (not anything to do with RenderX).

Folks here may help or on the Yahoo DITA group.

 

Is there some class on the body content? Or maybe it’s simply a template match that excludes [outputclass=”sidebar”] … without seeing the exact XML and templates you are trying to override, guessing is not valuable.

 

Kevin Brown

RenderX

 

From: Morley Tooke [mailto:morley.tooke at gmail.com] 
Sent: Thursday, May 05, 2016 1:06 PM
To: kevin at renderx.com; RenderX Community Support List <xep-support at renderx.com>
Subject: Re: [xep-support] Re: Floats spanning multiple pages

 

Thank you, I had experimented with a table. What I don't quite get is the third cell:

 

<fo:table-cell><!—body  --></fo:table-cell>

 

I know how to get my <section outputclass="sidebar"> content into the first cell, by matching section, but how do I get the rest of the content into the third cell. I'm overriding the PDF2 transform in DITA.

 

Thanks in advance.

 

On Thu, May 5, 2016 at 1:20 PM, Kevin Brown <kevin at renderx.com <mailto:kevin at renderx.com> > wrote:

Make a table with three columns and only three cells and one row.

Left cell = sidebar, middle cell=spacer, right cell = body.

 

<fo:table>

                <fo:table-column column-width=”2in”/>

                <fo:table-column column-width=”0.25in”/>

                <fo:table-column/>

                <fo:table-body>

                                <fo:table-row>

                                                <fo:table-cell><!—sidebar --></fo:table-cell>

                                                <fo:table-cell><fo:block><fo:leader/></fo:block></fo:table-cell>

<fo:table-cell><!—body  --></fo:table-cell>

                                </fo:table-row>

                </fo:table-body>

</fo:table>

 

Kevin Brown

RenderX

 

From: Xep-support [mailto:xep-support-bounces at renderx.com <mailto:xep-support-bounces at renderx.com> ] On Behalf Of Morley Tooke
Sent: Thursday, May 05, 2016 6:59 AM
To: xep-support at renderx.com <mailto:xep-support at renderx.com> 
Subject: [xep-support] Floats spanning multiple pages

 

I've recently been asked to make a sidebar containing basic section/UL elements (DITA-OT) in my PDF output. The sidebar will float on the left side of the page, and the rest of the document will position to the right of the sidebar. Everything works as expected except:

 

1. The float breaks (no space for an element) when the sidebar is too big to fit in the current page and must wrap to the next page, and

2. I'd like to clear the space directly below the sidebar such that he paragraphs to the right of the sidebar do not wrap below the sidebar box.

 

Here is the template I've been experimenting with:

 

     <xsl:template match="*[contains(@class,' topic/section ')][@outputclass='sidebar']">

            <fo:float float="start" >

                        <fo:block-container width="12pc" padding-top="18px" >

                                    

                                                <fo:block xsl:use-attribute-sets="__sidebar" >

                                                            <xsl:call-template name="commonattributes"/>

                                                  

                                                            <xsl:apply-templates/>

                                                </fo:block>

                                                

                        </fo:block-container>

            </fo:float>

    </xsl:template>

 

Here are the attributes:

 

            <xsl:attribute-set name="__sidebar">

                                    <xsl:attribute name="width">5pc</xsl:attribute>

                                    <xsl:attribute name="padding-right">20px</xsl:attribute>

                                    <xsl:attribute name="margin-right">20px</xsl:attribute>

                                    <xsl:attribute name="padding-bottom">8px</xsl:attribute>

                                    <xsl:attribute name="margin-bottom">8px</xsl:attribute>

                                    <xsl:attribute name="position">absolute</xsl:attribute>

                                    <xsl:attribute name="border-right-style">dotted</xsl:attribute>

                                    <xsl:attribute name="border-right-width">1pt</xsl:attribute>

                                    <xsl:attribute name="border-right-color">black</xsl:attribute>

                                    <xsl:attribute name="font-size">8pt</xsl:attribute>

    </xsl:attribute-set>

 

Is this possible? Thanks in advance.


_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html <http://ww.renderx.com/terms-of-service.html> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20160505/dba04ca9/attachment-0001.html>


More information about the Xep-support mailing list