XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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@mitre.org>
+------------------------------------------


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS