Hi i'm new to xslt

the below code for getting chart in pdf after clicking the chart checkbox

<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">
[B]<xsl:attribute name="src">[/B] 
<xsl:value-of select="concat(concat('url(',$chartimage),')')" />
<xsl:if test="$chartPageBreak='true'">							<fo:block break-after="page" />

bold coded setted attribute name through that they are getting url

this is happening when the chart checkbox clicking

this below code for getting table without condition i can get by default
but i disable the check box of table the table also coming with the chart.
i don't know how to fix it.

this are in the same xslt

How to fix it plz help me

<fo:block font-size="10pt">
<fo:table table-layout="fixed">
<xsl:for-each select="/mdxtable/body/row">
<xsl:sort select="count(cell)" data-type="number" order="descending" />
<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:when test="count(/mdxtable/head/row/corner)=0">
<xsl:value-of select="sum(/mdxtable/head/row/heading-heading/@colspan)" />
<xsl:value-of select="count(cell) + /mdxtable/head/row/corner/@colspan" />
<xsl:apply-templates select="head" />
<xsl:apply-templates select="body" />
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.