Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Generating table cells and rows

From: Aaron Johnson <artpunx@--------->
To:
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent