Allow for more than one image per item.

svn path=/trunk/; revision=7078
This commit is contained in:
2006-10-01 13:51:03 +00:00
parent d02779dde5
commit d6d08defac
6 changed files with 22 additions and 15 deletions

View File

@@ -4,11 +4,16 @@
<itemset>
<item type="t-shirt" id="latin-white" date="2001-01-01">
<available size="S" />
<available size="M" />
<available size="L" />
<available size="XL" />
<available size="XXL" />
<image>/order/2001/latin-white.jpg</image>
<available size="S"/>
<available size="M"/>
<available size="L"/>
<available size="XL"/>
<available size="XXL"/>
<image
small="/order/2001/latin-white-front-small.jpg"
large="/order/2001/latin-white-front-large.jpg"/>
<image
small="/order/2001/latin-white-back-small.jpg"
large="/order/2001/latin-white-back-large.jpg"/>
</item>
</itemset>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -18,17 +18,19 @@
<!-- Image -->
<xsl:element name="td">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link" />
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="alt">Image of the item</xsl:attribute>
<xsl:attribute name="src">
<xsl:value-of select="image" />
<xsl:for-each select="image">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="@large"/>
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="alt">Image of the item</xsl:attribute>
<xsl:attribute name="src">
<xsl:value-of select="@small"/>
</xsl:attribute>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:for-each>
</xsl:element>
<!-- Name and description -->