and if i want to link three or four elemnts?
just changing the modulo and in sibling::* or sibling::*
edit: my Problem is that i want to get the Output in a field so my previous code was like that:
<cell dim="1 1">
<struct dim="1 1">
<fld><xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute><c><xsl:value-of select="value"/></c>
so how could i Change your tip, that it fits here...?