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

Re: alternating tags in a list?

Subject: Re: alternating tags in a list?
From: Paul_Tihansky@xxxxxxxxxxxx
Date: Fri, 11 Dec 1998 09:25:16 -0500
Re: alternating tags in a list?
--- Guy Murphy wrote: ---
> So you don't need to track state, just obtain index, evaluate a
condition,
> and perform basic arithmetic. You could do this without resorting to
> script, but it would probably be more concise with script. It would IMHO
be
> a pity not to include script for these matters as it would mean bending
the
> simple XSL out of shape to occomodate these rare occurences. Such matters
> are best expressed in a procedural language sniper, ie. a piece of
script.
>
> I've used this method many times when transforming data to HTML via ASP.
>
> Personaly, if W3C doesn't include ECMAScript support in the final Rec
I'll
> be using the non-compliant variety of parser that does :)
>

     I strongly agree!  When the original XSL proposal came out I was using
XSL to create tables with alternating colors for each row by embedding
ECMAScript.  Sadly, the latest XSL does not permit this.  Fortunately,
Microsoft realized the usefulness of this in MSIE5b2.
     I would not propose to add basic arithmetic or evaluation of
conditions to XSL, since it can be done quite elegantly now with
ECMAScript.  So I'll join you in pleading for ECMAScript support in the
final Rec.

Paul



 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.