[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Help with template and tables
Have the following code... <xsl:call-template name=3D"GRAPH"> <xsl:with-param name=3D"C1" select=3D"count(//imp:FINDING[imp:FINDING_STATUS=3D'O' and imp:SEVERITY=3D'1'])"/> <xsl:with-param name=3D"C2" select=3D"count(//imp:FINDING[imp:FINDING_STATUS=3D'O' and imp:SEVERITY=3D'2'])"/> <xsl:with-param name=3D"C3" select=3D"count(//imp:FINDING[imp:FINDING_STATUS=3D'O' and imp:SEVERITY=3D'3'])"/> <xsl:with-param name=3D"C4" select=3D"count(//imp:FINDING[imp:FINDING_STATUS=3D'O' and imp:SEVERITY=3D'4'])"/> </xsl:call-template> <xsl:template name=3D"GRAPH"> <xsl:param name=3D"C1"/> <xsl:param name=3D"C2"/> <xsl:param name=3D"C3"/> <xsl:param name=3D"C4"/> <table border=3D"0" width=3D"300"> <tr><td width=3D"100%"> <table border=3D"0" width=3D"$C1" bgcolor=3D"#ff0000"> <tr><td width=3D"100%"> </td></tr> </table> <table border=3D"0" width=3D"$C1" bgcolor=3D"#0000ff"> <tr><td width=3D"100%"> </td></tr> </table> <table border=3D"0" width=3D"$C3" bgcolor=3D"#ffff00"> <tr><td width=3D"100%"> </td></tr> </table> <table border=3D"0" width=3D"$C4" bgcolor=3D"#00ff00"> <tr><td width=3D"100%"> </td></tr> </table> </td></tr> </table> </xsl:template> My problem is that when this is rendered into my browser (IE 6/7, Firefox 2) the values that I want to assign to the table width is not replaced with the appropriate value. I even tried to use <xsl:value-of select=3D'$C1'/> but got an error saying that < was not allowed in the width field. +------------------------------------------ | José J. Cintrón - <jcintron@m...> +------------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|