[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: Guy_Murphy@xxxxxxxxxx
Date: Tue, 15 Dec 1998 13:40:12 +0000
Re: alternating tags in a list?
This isn't a declaritive model issue.

You can declare it any which way you think is a good way. The current XSL
language spec doesn't have this facility, but that by no means says that it
can't. All you are trying to declare in the alternate tag issue is if
(row.index() % 2 == 1), the can be structure to fit with the present
pattern matching syntax any way the W3C see fit....::shrug::...
<xsl:template match="index(this)$mod$2=1">... if we favour the built in
methods with evaluations approach, otherwise pick some characters off your
keyboard to express this.

Cheers
     Guy.





xsl-list@xxxxxxxxxxxxxxxx on 12/16/98 01:57:49 AM

To:   xsl-list@xxxxxxxxxxxxxxxx
cc:    (bcc: Guy Murphy/UK/MAID)
Subject:  Re: alternating tags in a list?




Paul Prescod wrote
>As James Clark has pointed out on several occasions, if you want to turn
>every other row in a table blue, this is *trivial* in DOM code.
How do you know that you want to turn every other row blue?
ie: who writes the DOM code and where is it executed?
Isn't this just shifting a responsibility around, but admitting that the
declarative model can't supply this by itself?
How do I tell a browser that every 2nd line should be blue?
I'd prefer to see the declarative language capable of defining this kind of
event.
Andy Dent BSc MACS AACM, Software Designer, A.D. Software, Western
Australia
OOFILE - Database, Reports, Graphs, GUI for c++ on Mac, Unix & Windows
PP2MFC - PowerPlant->MFC portability
http://www.highway1.com.au/adsoftware/crossplatform.html
In SF for Macworld Jan 1st-9th 1999, at the AppMaker stand in DevDepot

 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

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.