My XML provides me with multiple images assigned to different mmids:
<Mediendaten>
<Mediendaten mmid="22404">
<url size="original">A 22404 FILE</url>
<url size="thumb">ANOTHER 22404 FILE</url>
</Mediendaten>
<Mediendaten mmid="22405">
<url size="original">A 22405 FILE</url>
<url size="thumb">ANOTHER 22405 FILE</url>
</Mediendaten>
<Mediendaten>
My XSLT selects only the urls where size=thumb:
<xsl:template match="/Mediendaten">
<xsl:apply-templates select="Mediendaten/url">
</xsl:apply-templates>
</xsl:template>
<xsl:template match="Mediendaten/url">
<xsl:if test="@size = 'thumb'">
<img width="280" border="0" align="left">
<xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute>
</img>
</xsl:if>
</xsl:template>
HOWEVER, I only need the thumbnail from the first mmid (in this case 22404). I have NO control over the mmid value.
How do I stop my template so it only outputs the thumb file of the first mmid?
Many thanks for any help!