Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Table Span not working

From: "Scott Trenda" <Scott.Trenda@-------->
To:
Date: 1/6/2009 4:06:00 AM
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.ramkumar@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, January 05, 2009 9:47 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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
&#x0394;&#x03C0;
(mN/m)</entry>
<entry align="center" nameend="col5" namest="col4">PIN-b
&#x0394;&#x03C0;
(mN/m)</entry>
</row>

Regards,
Ramkumar


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent