Subject: Re: [xsl] Sorting Alphabetically to an HTML Table From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 18 Jun 2003 16:14:34 +0100 |
<a> <xsl:attribute name="href">javascript:openUrl ('<xsl:value-of select='url'/>')</xsl:attribute> would be easier to read/write as <a href="javascript:openUrl ('{url}')"> for your table just note that you want to make a list of rows, each starting with every third doclink so that's <table> <xsl:for-each select="doclink[position() mod 3 = 1]"> <tr> <!-- now you want the three cells for this item and the next two,--> <td><xsl:apply-templates select="."/></td> <td><xsl:apply-templates select="following-sibling::doclink[1]"/></td> <td><xsl:apply-templates select="following-sibling::doclink[2]"/></td> </tr> </xsl:for-each> </table> David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Sorting Alphabetically to an , Davis, Carrie | Thread | [xsl] Search XML Files, James Hunt |
[xsl] Search XML Files, James Hunt | Date | [xsl] Sorry (There was something wr, James Hunt |
Month |