Hi,
First of all, the XPath expression
Code:
asset[position() mod $N = 1]
will give the nodes at positions
1, N + 1, 2*N + 1, 3*N + 1, etc.
So, in your example, when grid_width=3, according to your XSLT, you'll get the nodes from 4-th to 6-th as the result of one pass of the xsl:for-each (the first node is passed over, since the condition
Code:
../@xads_user_profile_id=exclusive/@xads_user_profile_id
is not met) and the 7-th node as the result of the second pass of the xsl:for-each. If you'll drop the condition I mentioned just above, you'll get all assets, since the first asset also will be included which in turn will "bring" assets standing at positions 2 and 3. So, if you want to see also the asset
Code:
<asset is_exclusive="true" content_type="image" label="KJ-FX-12" id="50666231" expired="false">
<exclusive xads_user_profile_id="1240871" perm_level="50"/>
</asset>
you can drop that condition, for example.
But one point was strange for me: how can you get the first asset(by the same XSLT code you presented) when the grid_width=5?
Regards,
Armen