[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
XSL-FO  XML
Forum Index » XSLfast Forum
Author Message
Rajendran



Joined: 04/10/2010 07:22:11
Messages: 4
Offline

Hi,

Could you please clarify the below doubts in the XSL-FO.

I'm the beginning stage of XSL-FO.

I've generating two column format PDF from XML via XSL-FO.

When i'm using fo:float with "before" option for table and figures (Note: I've applied span="all" for tables and figures only), it will start in the new page. But the table size is larger than single page, it won't continue to next page.

If i doesn't use float for table and figures, it is generating some extra space before table, i.e., second column is taken some extra space as like attached.

Thanks,
Rajendran

[Thumb - table.GIF]
 Filename table.GIF [Disk] Download
 Description
 Filesize 9 Kbytes
 Downloaded:  37 time(s)

Paviel Donau



Joined: 04/06/2009 11:50:28
Messages: 10
Offline

Rajendran, I have to say I don’t quite understand the problem you’re experiencing but it seems pretty obvious that fo:float is not what you need to position the table properly here. Besides the table looks twice as wide as the text in a column above so I wonder how some extra space can not be generated. Perhaps there’s something I just don’t get about your layout.

This would be really helpful if you attached a simple layout (an .xsf file) to demonstrate your problem and described what you’d like to get as an output. Thank you.
Rajendran



Joined: 04/10/2010 07:22:11
Messages: 4
Offline

Hi Paviel,

Please check my below codings. And also i ve attached XSL and XML file.

<xsl:template match="table-wrap">

<xsl:param name="float">
<xsl:choose>
<xsl:when test="@position='float'">
<xsl:text>before</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>none</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:param>

<!--<fo:float float="{$float}" clear="before" padding-before="-6.0pt" padding-after="-6.0pt">-->

<xsl:if test="table/@width='50%'">
<xsl:attribute name="float">none</xsl:attribute>
<xsl:attribute name="padding-top">0pt</xsl:attribute>
</xsl:if>

<fo:block font-family="Franklin Gothic Book" span="all">
<fo:table-and-caption id="{@id}" text-align="left" space-after="6pt" padding-before="0pt" padding-after="0pt">
<xsl:if test="table/@width='50%'">
<xsl:attribute name="span">inherit</xsl:attribute></xsl:if>
<xsl:if test="table/@width='75%'">
<xsl:attribute name="span">all</xsl:attribute>
<xsl:attribute name="padding-bottom">0pt</xsl:attribute>
</xsl:if>
<fo:table-caption>
<fo:block text-align="left" font-family="Franklin Gothic Book" font-size="10pt" space-before="0pt" margin-left="6pt" margin-right="6pt" padding-after="0pt">
<fo:inline font-family="Franklin Gothic Medium"><xsl:value-of select="label"/> </fo:inline><fo:inline><xsl:apply-templates select="caption"/></fo:inline>
</fo:block>
</fo:table-caption>
<xsl:apply-templates/>
</fo:table-and-caption>
</fo:block>

<xsl:apply-templates select="table-wrap-foot"/>
<!--</fo:float>-->
</xsl:template>

Thanks,
Rajendran
 Filename IJC.xsl [Disk] Download
 Description
 Filesize 38 Kbytes
 Downloaded:  47 time(s)

Rajendran



Joined: 04/10/2010 07:22:11
Messages: 4
Offline

Pls find xml also
 Filename input.xml [Disk] Download
 Description
 Filesize 54 Kbytes
 Downloaded:  54 time(s)

Paviel Donau



Joined: 04/06/2009 11:50:28
Messages: 10
Offline

Thanks but still, could you please attach your XSLfast layout file.
Rajendran



Joined: 04/10/2010 07:22:11
Messages: 4
Offline

Hi,

Find the generated PDF.

I've Bookmarked the issues in the PDF in page 5 and 10.

Thanks,
Rajendran
 Filename IJCEP_910002.pdf [Disk] Download
 Description
 Filesize 1259 Kbytes
 Downloaded:  69 time(s)

Paviel Donau



Joined: 04/06/2009 11:50:28
Messages: 10
Offline

Thank you but it isn’t an XSLfast layout, is it? It’s really hard to understand how you get this problem without the layout.
 
Forum Index » XSLfast Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team