xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Substituting XSL Variable in HTML Tags


Subject: Re: [xsl] Substituting XSL Variable in HTML Tags
From: Chuck White <chuckwh@xxxxxxxxxxx>
Date: Mon, 31 Dec 2001 00:59:54 -0800

Greetings:

The easiest way to get flamed on this list is to post a question about a
pre-XSLT stylesheet language issued by Microsoft before any standard was
released. The xsl:eval element is a throwback to another time. I strongly
recommend you use standard variable syntax. You can find an answer for
changing row colors here:

http://www.dpawson.co.uk/xsl/sect2/sect21.html

You should also familiarize yourself with the basic XSLT standard, here:

http://www.w3.org/TR/xslt

best regards,

Chuck White
CEO
The Tumeric Partnership
http://www.tumeric.net
chuck@xxxxxxxxxxx
________________________________________
Co-Author, Mastering XML, Premium Edition
Sybex Books, May, 2001
http://www.javertising.com

----- Original Message -----
From: "nirmala.s" <nirmala.s@xxxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, December 31, 2001 1:42 PM
Subject: [xsl] Substituting XSL Variable in HTML Tags


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


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



Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2010 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor