Hi All,
I'm trying to store variable with in for-each loop, it's working fine, but due to low performance, i like to ignore for-each loop, any other alternative way for this:
<xsl:template match="w:tbl">
<tgroup>
<!-- even single cell does not have w:tcBorders, don't pass frame='r'-->
<xsl:variable name="borderRight"><xsl:for-each select="w:tr/w:tc[last()]/w:tcPr"><xsl:if test="not(w:tcBorders/w:right[@w:val='single'])">no</xsl:if></xsl:for-each></xsl:variable>
<xsl:attribute name="frame"><xsl:if test="string-length($borderRight)=0">r</xsl:if></xsl:attribute>
</xsl:template>
Can I use KEY in this case? and how to use KEY?
Thanks in Advance,
Regards,
Saran
(good luck when calculating the spans :-)
I believe what I sent does what you need