hello.. for the xml document i have:
<?xml version="1.0" encoding="utf-8" ?>
<gallery>
<image>
<thumb>T_Image1.jpg</thumb>
<original>Image1.jpg</original>
<caption>Image 1 Caption</caption>
</image>
<image>
<thumb>T_Image2.jpg</thumb>
<original>Image2.jpg</original>
<caption>Image 2 Caption</caption>
</image>
<image>
<thumb>T_Image3.jpg</thumb>
<original>Image3.jpg</original>
<caption>Image 3 Caption</caption>
</image>
<image>
<thumb>T_Image4.jpg</thumb>
<original>Image4.jpg</original>
<caption>Image 4 Caption</caption>
</image>
<image>
<thumb>T_Image5.jpg</thumb>
<original>Image5.jpg</original>
<caption>Image 5 Caption</caption>
</image>
<image>
<thumb>T_Image6.jpg</thumb>
<original>Image6.jpg</original>
<caption>Image 6 Caption</caption>
</image>
</gallery>
and for the XSLT I have:
<xsl:stylesheet xmlns:xsl="
version="1.0">
<xsl:template match="/">
<xsl:for-each select="//image">
<xsl:apply-templates select="original" />
<xsl:apply-templates select="caption" />
</xsl:for-each>
</xsl:template>
<xsl:template match="original">
<a border = "0">
<xsl:attribute name="href">
uploaded_images/original/<xsl:value-of select="." />
</xsl:attribute>
<img>
<xsl:attribute name="src">
uploaded_images/T_<xsl:value-of select="." />
</xsl:attribute>
</img>
</a>
</xsl:template>
<xsl:template match="caption">
<xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet>
I would like the captions to be under the pics. The lines dont have to be 4 pictures long, but there needs to be at least 3 pictures per line.
Thanks for the help
zach