Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - Re: [xsl] Generating table cells and rows [xsl] Generating table cells and rowsTo: Date: 8/1/2005 10:09:00 AM 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
