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

Substituting XSL Variable in HTML Tags

Subject: Substituting XSL Variable in HTML Tags
From: "nirmala.s" <nirmala.s@xxxxxxxxxxxxx>
Date: Mon, 31 Dec 2001 13:42:40 -0800
xsl variable in html
Hi,

How to use XSL Variables in HTML tags.

For eg :

         <xsl:eval>
               intRowCount=0
          </xsl:eval>

            <xsl:choose>
                    <xsl:when test=".[intRowCount='0']">
                        <xsl:eval>
                            intRowCount=1
                            rowBgColor="#ffcc66"
                       </xsl:eval>
                    </xsl:when>

                    <xsl:otherwise>
                       <xsl:eval>
                            intRowCount=0
                            rowBgColor="#996600"
                       </xsl:eval>
                    </xsl:otherwise>
             </xsl:choose>

Here, I have used XSL:Choose to set the value for background color of
the row. The value is stored in the variable rowBgColor variable. How
can I substitute this variable value in "bgcolor" property of <tr> tag
in html.

Another problem here is whatever i give within XSL:eval is getting
displayed in the browser. How to avoid this???

Eg.
            <tr bgcolor= "<How to give the variable here>">

Please Help me.

Thanks in advance,
Nirmala



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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