[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Help with template and tables

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

table template
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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.