Alternate Values on every second column

Subject: Alternate Values on every second column
From: "Olynyk, Dean" <dolynyk1@xxxxxxxxx>
Date: Mon, 17 Jan 2000 13:39:58 -0800
Hi there,

Is there a way, besides a brute-force attack, to do the following with XSL?

---------------------------------
| x | y | x | y | x | y | x | y |
---------------------------------

The values of x and y will appear once in the associated XML file.

Currently, I'm doing:

<td align="center"><b><xsl:value-of select="foo/x"/></b></td>
<td align="center"><b><xsl:value-of select="foo/y"/></b></td>
<td align="center"><b><xsl:value-of select="foo/x"/></b></td>
...repeat 23 more times...

>From the XML:
<foo>
  <x>'98</x>
  <y>'99</y>
</foo>

Is there a cleaner way to do this?

Thanks,
--
d. 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread