This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
assigning a table to a string
- From: "Seema R" <seema dot r at net-kraft dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 30 Jan 2002 09:58:50 +0530
- Subject: [xsl] assigning a table to a string
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
There are three tables within respective layers.
I need to assign them to three DIFFERENT string variables.
string1 = <table name=table1"></table>
for eg:
string1= (could be as follows)
<table name="table1" cellspacing="2" cellpadding="2" border="1" >
<xsl:for-each select="//trendanalysis">
<xsl:sort select="result" order="ascending"></xsl:sort>
<xsl:if test="result[not(./text()=preceding::result/text())]">
<xsl:variable name="preval" select="result"></xsl:variable>
<tr>
<xsl:for-each select="//trendanalysis">
<xsl:sort select="result" order="ascending"></xsl:sort>
<xsl:if test="result=$preval">
<td width="90">
<xsl:value-of select="resultvalue"/>
</td>
</xsl:if>
</xsl:for-each>
</tr>
</xsl:if>
</xsl:for-each>
</table>
string2 = <table name="table2"></table>
string3 = <table name="table3"></table>
Using javascript I need to manipulate the table structure.....to move it
from left to right, top to bottom and vice versa.
How can I achieve that ? Please help !!!
Thanx,
Seema.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list