Somme welcomes.
First of all, follow the suggestion of Mads Hansen. You have a template that now, how to handle "large" images.
<xsl:template match="Mediendaten/url[@size = 'thumb']" > <img width="280" border="0" align="left" src="{.}" /> </xsl:template>
Then, if you want to display only the first image with the stroke (from the Mediendaten document in ), use:
<xsl:template match="/Mediendaten"> <xsl:apply-templates select="Mediendaten[1]/url[@size = 'thumb']" /> </xsl:template>
But if the value is “HOWEVER, I only need a thumbnail from the first mmid” is not Mediendaten (with mmid) in document order, but from Mediendaten with the smallest mmid. Try the following:
<xsl:template match="/Mediendaten"> <xsl:for-each select="Mediendaten"> <xsl:sort select="@mmid"/> <xsl:if test="position()=1"> <xsl:apply-templates select="url[@size = 'thumb']" /> </xsl:if> </xsl:for-each> </xsl:template>
hr_117
source share