xsl-list
[Top] [All Lists]

Re: Another Alternate table-row background color question - Using filters

2005-05-30 15:11:16

A pure XSLT 1.0 solution:
This shows how to create a N-column table from the nodes of a node-set.
     N and the node-set are passed as parameters.
     No extension function is referenced (and no "following-sibling"
axis is used)
     The rows are displayed in alternate colours.


http://www.topxml.com/code/default.asp?p=3&id=v20020514091249

That business of passing around the entire node population, as a means to get around follow-sibling) is cute. However, the outer test won't work for # cols = 1; it should probably be adjusted to look for mod cols = 0

--A

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--