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: displaying results in 2 columns


Almost there - just use the "following-sibling" axis in XPath.


<table>
  <xsl:for-each select="thinglist/thing[position() mod 2 = 1]">
  	<tr>
		<td><xsl:value-of select="@value"/></td>
		<td><xsl:value-of
select="following-sibling::thing/@value"/></td>
	</tr>
  </xsl:for-each>
</table>


Hope this helps,

Ben


 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]