xsl-list
[Top] [All Lists]

Generating table cells and rows

2005-08-01 03:08:33
Hello...

I have a stylesheet that outputs a series of photographs from an xml list.

<xsl:template name="displayPhotos">
                <xsl:param name="currentNodes"/>
                <xsl:for-each select="$currentNodes"> 
                <img src="{$photo_server}/?studentId={id}"/><br /> Name:
<xsl:value-of select="name"/>
                <xsl:if test="position() mod 5 =0"><br/></xsl:if>
                </xsl:for-each>
</xsl:template>

The template adds a line break for eack 5 images.

I would like to know if there is a way to do this with a table? Is it
possible to output 5 table cells and add another <tr> tag if required
for a second row of images?

Any ideas would be most appreciated.

Aaron

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>