[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: Tue, 15 Dec 1998 08:26:52 -0600
Re: alternating tags in a list?
Andy Dent wrote:
> 
> ie: who writes the DOM code and where is it executed?

You write the DOM code and it is executed either before or after the XSL
style application.

> Isn't this just shifting a responsibility around, but admitting that the
> declarative model can't supply this by itself?

Yes.

Similarly, someone new to stylesheets might ask "Isn't this stylesheet
stuff just shifting responsibility around, but admitting that the generic
markup can't supply this by itself?" I would answer: "yes." The point is
that by segmenting layers, we can build a more robust, reliable,
implementable, clean, easy-to-understand system. The opposite of this
philosophy is HTML: scripting, interactivity, formatting, metadata and
generic markup all in one level. That isn't necessarily bad for some
applications, but it sure isn't very robust.

> How do I tell a browser that every 2nd line should be blue?

With JavaScript code executed when the document is loaded.

> I'd prefer to see the declarative language capable of defining this kind of
> event.

If all you are talking about is modular arithmetic, then there is room for
argument about the cost/benefit of modular arithmetic. Chris Maden's
solution did not strike me as much simpler than the DOM solution, but we
could debate that once his idea has been fleshed out. It's just a
judgement call.

If you are talking about the entire class of problems: "Anything I dream
up" then I would argue that JavaScript with the DOM is the right way to
handle that, not JavaScript in XSL.

 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.