[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 Prescod <paul@xxxxxxxxxxx>
Date: Mon, 14 Dec 1998 15:07:10 -0600
getelementsby list
Paul_Tihansky@xxxxxxxxxxxx wrote:
> 
> > Nevertheless, I can say this about XSL: I've deployed it in two
> > situations. The first was a markup user who doesn't know how to program.
> 
> If they wanted to do alternating tags, what would you have told them to do?

I would have told them to learn Javascript and do it with Javascript.

What would I have told them with the old XSL, with embedded scripting?
"Learn Javascript. Do it with Javascript."

> I can do a lot with an XSL transformation, so why should I have to abandon
> XSL altogether for the sake of a trivial function.  

I'm not asking you to abandon XSL. I'm asking you to use XSL for what it
is good for and then write ten lines of JavaScript to fix up the result.
Let's see, it takes one line of DOM code to get a list of all tables in
the document. One line to get a list of all rows in a table. One line to
skip every other row. Then one line to add the shading attribute. That's
four lines. I would write them out but I can't bring myself to type
GetElementsBy********. Argh.

 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself
 http://itrc.uwaterloo.ca/~papresco

"Sports utility vehicles are gated communities on wheels" - Anon


 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.