[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
I know XML doesn't do tags, however, it seemed easier to explain to call them tags... Sorry for the confusion.
I searched the archives, but couldn't find anything; I should've google'd further...
I used the following template, by David, but made a small modification:
I changed the <xsl:for-each select="itemname[position() mod 2 = 0]"> to <xsl:for-each select="itemname[position() mod 2 = 1]">, as else it would "forget" to display the very first value...
Anyway, thanks all!
Patrick
On 3-dec-03, at 17:18, David Carlisle wrote:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] First close a tag, then open
Subject: Re: [xsl] First close a tag, then open From: Patrick van Halderen <patrick@xxxxxxxxxxxxxxxxxxx> Date: Thu, 4 Dec 2003 10:24:39 +0100 |
Hi all, Thanks for the snappy reply!
I know XML doesn't do tags, however, it seemed easier to explain to call them tags... Sorry for the confusion.
I searched the archives, but couldn't find anything; I should've google'd further...
I used the following template, by David, but made a small modification:
I changed the <xsl:for-each select="itemname[position() mod 2 = 0]"> to <xsl:for-each select="itemname[position() mod 2 = 1]">, as else it would "forget" to display the very first value...
Anyway, thanks all!
Patrick
On 3-dec-03, at 17:18, David Carlisle wrote:
You probably want to select every second item <xsl:for-each select="itemname[position() mod 2 = 0]"> then make a row of teh table <tr> <td><xsl:value-of select="."/></td> <td><xsl:value-of select="following-sibling::*[1]"/></td> </tr> </xsl:for-each>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] First close a tag, then o, David Carlisle | Thread | Re: [xsl] First close a tag, then o, David Carlisle |
Re: [xsl] number different nodes, Markus Hanel | Date | Re: [xsl] First close a tag, then o, David Carlisle |
Month |
Keywords