Hai,
Our application has pdf download.The pdf file has chart and table..Now the problem is user choose only table option but table and chart download..i want table only..the coding was given below..please help me.....
<!-- Change for Logo --> <fo:region-before extent="1cm" border="0.1pt solid silver" padding="18pt" border-bottom-width="2pt" background-color="white" background-image="http://localhost:9002/distil-web1.3/distillogo.png" background-repeat="no-repeat"/> <fo:region-after extent="1cm"/> <fo:region-body margin-bottom="1.5cm" margin-top="1.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simple"> <!-- Page header --> <fo:static-content flow-name="xsl-region-before"> <fo:block border-bottom-width="0pt" border-bottom-style="solid" border-bottom-color="black" font-weight="bold" font-size="8pt"> <!-- retrieve current page title --> <fo:retrieve-marker retrieve-class-name="page-head"/> </fo:block> </fo:static-content> <!-- Page footer --> <fo:static-content flow-name="xsl-region-after"> <fo:block padding-top="3pt" font-weight="bold" font-size="8pt" text-align="center"> <fo:inline font-style="italic"> <!-- <xsl:value-of select="$pageFooterText"/> --> </fo:inline> </fo:block> </fo:static-content> <!-- Page content --> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="8pt" font-family="Verdana, Geneva, Arial, Helvetica, sans-serif"> <fo:block> <fo:marker marker-class-name="page-head"> <!-- FOP compliant implementation, should use fo:leader with later versions --> <fo:table table-layout="fixed" width="100%"> <fo:table-column column-width="proportional-column-width(4)"/> <fo:table-column column-width="proportional-column-width(1)"/> <fo:table-body> <fo:table-row> <fo:table-cell> <!-- <fo:block text-align="left" > <xsl:value-of select="$pageHeaderText"/> </fo:block> --> </fo:table-cell> <fo:table-cell> <fo:block text-align="right"> Page <fo:page-number/> of <fo:page-number-citation ref-id="EndOfDocument"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:marker> </fo:block> <!-- report title --> <fo:block font-size="12pt" font-weight="bold" text-align="center" space-after="1em"> <xsl:value-of select="$reportTitle"/> </fo:block> <!-- chart on first page only --> <xsl:if test="$chartimage"> <fo:block text-align="center" space-after="8em"> <fo:external-graphic xmlns:fo="http://www.w3.org/1999/XSL/Format" scaling="uniform"> <xsl:attribute name="content-height"> <xsl:value-of select="concat($chartheight,'px')"/> </xsl:attribute> <xsl:attribute name="content-width"> <xsl:value-of select="concat($chartwidth,'px')"/> </xsl:attribute> <xsl:attribute name="src"> <xsl:value-of select="concat(concat('url(',$chartimage),')')"/> </xsl:attribute> </fo:external-graphic> </fo:block> <xsl:if test="$chartPageBreak='true'"> <fo:block break-after="page"/> </xsl:if> </xsl:if> <fo:block font-size="10pt"> <fo:table table-layout="fixed"> <fo:table-body> <xsl:apply-templates select="head"/> <xsl:apply-templates select="body"/> </fo:table-body> <xsl:attribute name="width"> <xsl:choose> <xsl:when test="$tableWidth"> <xsl:value-of select="concat($tableWidth,'cm')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'100%'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <!-- for each corner, create #columns=col-span--> <xsl:for-each select="/mdxtable/body/row"> <xsl:sort select="count(cell)" data-type="number" order="ascending"/> <xsl:if test="position() = 1"> <xsl:call-template name="do_columns"> <xsl:with-param name="colnum"> <!-- if there is a corner, then this works, otherwise need to count row heading-heading colspans --> <xsl:choose> <xsl:when test="count(/mdxtable/head/row/corner)=0"> <xsl:value-of select="sum(/mdxtable/head/row/heading-heading/@colspan)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="count(cell) + /mdxtable/head/row/corner/@colspan"/> </xsl:otherwise> </xsl:choose> </xsl:with-param> </xsl:call-template> </xsl:if> </xsl:for-each> </fo:table> </fo:block> <!--<fo:block text-align="center" id="EndOfDocument"/>--> </fo:block> <fo:block text-align="center" id="EndOfDocument"/> </fo:flow> </fo:page-sequence> </fo:root>