This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: counting and displaying with xsl?


The following has worked for me before:

		<xsl:if expr="(childNumber(this) % 5) == 1">

-----Original Message-----
From: juggy@gmx.net [mailto:juggy@gmx.net]
Sent: Tuesday, June 06, 2000 5:07 PM
To: xsl-list@mulberrytech.com
Subject: counting and displaying with xsl?


Hi,

Is there any way to use xsl to count the number of items in my 
xml? I'd like to know this so I could arrange them according to their 
number (e.g. have a line break every 5 items).
I think of something like
<xsl:if "count > 5">
	ARRANGE NORMAL
<xsl:if-otherwise>
	LINEBREAK
	ARRANGE NORMAL
...

Juggy


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]