Dear Scott,
I got solution by apply the below code. Thanks.
<xsl:template match="tbody/row/entry">
<xsl:variable name="colspan">
<xsl:value-of
select="number(substring-after(@nameend,'col'))-number(substring-after(@name
st,'col'))+1"/>
</xsl:variable>
<td colspan="{$colspan}"><xsl:apply-templates/></td>
</xsl:template>
Regards,
Ramkumar
-----Original Message-----
From: V.Ramkumar [mailto:v(_dot_)ramkumar(_at_)macmillansolutions(_dot_)com]
Sent: Tuesday, January 06, 2009 11:39 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Table Span not working
Dear Scott,
I tried the same which you suggested below. But span not working.
Regards,
Ramkumar
-----Original Message-----
From: Scott Trenda [mailto:Scott(_dot_)Trenda(_at_)oati(_dot_)net]
Sent: Tuesday, January 06, 2009 9:35 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Table Span not working
It looks like you just forgot the curly braces in the colspan
attribute-value-template. Try this:
<th bgcolor="#C4C4FF"
colspan="{($colend-$colst)+1}"><xsl:apply-templates/></th>
~ Scott
-----Original Message-----
From: V.Ramkumar [mailto:v(_dot_)ramkumar(_at_)macmillansolutions(_dot_)com]
Sent: Monday, January 05, 2009 9:47 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Table Span not working
Hi List,
I am doing XSL style sheet for XML view. In table, span not able to get,
Please correct me any mistake in the below code.
XSL
=====
The below my code not giving expected result/span in IE.
<xsl:template match="thead/row/entry">
<xsl:variable name="colst"
select="translate(@namest,'col','')"/>
<xsl:variable name="colend"
select="translate(@nameend,'col','')"/>
<th bgcolor="#C4C4FF"
colspan="($colend-$colst)+1"><xsl:apply-templates/></th>
</xsl:template>
XML
======
Four column table contains a header spanned row like below.
<row row-type="straddle-head">
<entry align="center" nameend="col3" namest="col2">PIN-a
Δπ
(mN/m)</entry>
<entry align="center" nameend="col5" namest="col4">PIN-b
Δπ
(mN/m)</entry>
</row>
Regards,
Ramkumar
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--