jeraldmuthu 0 Newbie Poster

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:attribute> 
</fo:external-graphic>
</fo:block>
<xsl:if test="$chartPageBreak='true'">							<fo:block break-after="page" />
</xsl:if></xsl:if>

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: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-body>
<xsl:apply-templates select="head" />
<xsl:apply-templates select="body" />
</fo:table-body> 
</fo:table> 
</fo:block>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.