<html> <head> </head> <body> <table> <tbody> <tr> <td> <xsl:for-each select="document('Random.xml')"> <xsl:for-each select="Node1"> <xsl:for-each select="@Name"> <span style="font-size:10pt; "> <xsl:value-of select="." />//a value "Andy" is read from xml file and also populated into the cell here </span> <script language="javascript" type="text/javascript"> Name = "<xsl:value-of select="." />";//Storing Andy in JS Var (or) i can use a php variable to store "Andy" in it, i dont knw how to do it in php. </script> <xsl:variable name="XslVarName"> <xsl:value-of select="." />//Storing Andy in an XSLT variable. But this is not working </xsl:variable> </xsl:for-each> </xsl:for-each> </td> <td> //Now how do i put the value of that JS or php variable or XSLT variable in this cell so that i dont have to read the xml file in all the td's. The text in this cell should be Hello Andy? </td> </tbody> </table> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)