Subject: Re: alternating tags in a list? From: Guy_Murphy@xxxxxxxxxx Date: Tue, 15 Dec 1998 13:40:12 +0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: alternating tags in a list?, Ray Cromwell | Thread | Re: alternating tags in a list?, Sean Mc Grath |
Re: alternating tags in a list?, Toivo Lainevool | Date | Re: alternating tags in a list?, Paul Prescod |
Month |