[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Cintron, Jose J." <jcintron@m...>
  • Date: Mon, 13 Nov 2006 11:44:59 -0500

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...>
+------------------------------------------

  • References:

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member