Subject: [xsl] modulus operator From: Saverio Perugini <sperugin@xxxxxxxxxxxxxxxx> Date: Tue, 1 Oct 2002 13:08:08 -0400 (EDT) |
Hello, Does XSLT have a modulus operator? I am generating an HTML page containing a long list of links from an XML document. I would like all the links to appear on one screen in order to avoid scrolling. I'd like about 7 links per line. With an modulus operator, I can achieve this pretty easily as follows: <xsl:for-each select="*"> <a><xsl:attribute name="href"/><xsl:value-of select="...."/></xsl:attribute><xsl:value-of select="...."/></a> <xsl:if test="counter % 7 == 0"> <br/> </xsl:if> </xsl:for-each> If XSLT does not have a modulus operator, is there a way to produce the desired effect? Thank You and Best Regards, S. Perugini XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] conditional inlcudes -is , Robert Koberg | Thread | Re: [xsl] modulus operator, Joerg Heinicke |
Re: [xsl] URIResolver howto, Vedu Hariths | Date | Re: [xsl] Is It Possible to use Jav, Joerg Heinicke |
Month |