Whenever I am trying to use zero_width_space_1 , In PDF Marathi data breaks and did not show correct as I am expecting . But when I am comment code and uncomment code which is commnent in following code , expected output shows correctly, but issue occurs that words are overlapping.
How to do ???
XSL code is as follows :-
<code>
<xsl:template name="table_dynamic_columns_data">
<xsl:param name="index"/>
<xsl:param name="total"/>
<fo:table-cell keep-together.within-column="always">
<fo:block>
<xsl:call-template name="zero_width_space_1">
<xsl:with-param name="data">
<xsl:value-of select="*[position()=$index]"></xsl:value-of>
</xsl:with-param>
</xsl:call-template>
<!--<xsl:value-of select="*[position()=$index]"></xsl:value-of>-->
</fo:block>
</fo:table-cell>
</xsl:template>
<xsl:template name="zero_width_space_1">
<xsl:param name="data"/>
<xsl:param name="counter" select="0"/>
<xsl:choose>
<xsl:when test="$counter < string-length($data)">
<xsl:value-of select='concat(substring($data,$counter,1),"​")'/>
<xsl:call-template name="zero_width_space_2">
<xsl:with-param name="data" select="$data"/>
<xsl:with-param name="counter" select="$counter+1"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</code>
No comments:
Post a Comment