Selecting & displaying image:loc XSLT

memoryshot

New Member
I am having trouble with an XSL image sitemap. The following code works fine when listing a single image per url, since it is defined within . For a thumbnail page, this code does not register multiple image:image per url.For the thumbnail page, I would like to use the following format:\[code\]<url> <loc>http://www.bookboxshop.com/products/</loc> <image:image> <image:loc>http://www.bookboxshop.com/images/Chat-Noir-BK-58-209x180.png</image:loc> <image:caption>Chat Noir Book-Box Thumbnail</image:caption> </image:image> <image:image> <image:loc>http://www.bookboxshop.com/images/BK-63-209x180.png</image:loc> <image:caption>Picasso Book-Box Thumbnail</image:caption> </image:image> </url> </urlset>\[/code\]However, the code only displays the first entry, and not the second. This is the XSL:\[code\]</tr> </thead> <tbody> <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/> <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> <xsl:for-each select="sitemap:urlset/sitemap:url"> <tr> <td> <xsl:variable name="itemURL"> <xsl:value-of select="image:image/image:loc"/> </xsl:variable> <a href="http://stackoverflow.com/questions/11165137/{$itemURL}"> <xsl:value-of select="image:image/image:loc"/> </a> </td> <td> <xsl:value-of select="image:image/image:caption"/></td></tr></xsl:for-each>\[/code\]I've played with various combinations of image:image and image:loc here:\[code\]<xsl:for-each select="sitemap:urlset/sitemap:url">\[/code\]This is the portion of code that selects what is displayed (I believe), but no luck so far. Any help or thought appreciated!
 
Back
Top