<xsl:template match="photos"> <xsl:for-each select="photo[position() mod 3 = 1]"> <tr> <xsl:aplly-templates select=".|following-sibling::photo[position() < 3]" /> </tr> </xsl:for-each></xsl:template>
<xsl:template match="photo"> <td> <xsl:value-of select="@title"/> <xsl:value-of select="@id"/> </td></xsl:template>Автор: Luzhnikovskiy