[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: First close a tag, then open
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|