XSL queston

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Alan Dayley
Date:  
To: plug-discuss
Subject: XSL queston
I am attempting to modify an XSL file (for the first time in my life) used
to output a web page picture gallery from Lphoto. The lines in question
are:

...
<xsl:template match="/Thumbs/Photo">
<xsl:if test="(position() mod 10) = 2">
    <xsl:text disable-output-escaping="yes">&lt;tr class="fulltablerow"
&gt;</xsl:text>
</xsl:if>
<td width="1" class="fulltablecolumn">
    <table class="phototable">
        <tr class="phototablephotorow">
            <td class="phototablephotocolumn">
...


It appears that the second line above, "<xsl:if test="(position() mod 10)
= 2">" causes the thumbnail page to produce the tumbnails rows with 5
thumbnails in each row. I think I understand each piece of that line
individually but not all together.

What I want to do is have 4 thumbnails per row instead of 5 but my
experiments in changing that particular line have resulted in various
numbers in each row but not a consistent 4. Perhaps one on this list with
real XSLT experience would know how to accomplish what I need.

Any helpers?

Alan



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss