The simplest way is to change the template for /Mediendaten
:
<xsl:template match="/Mediendaten">
<xsl:apply-templates select="Mediendaten[@mmid][1]/url"/>
</xsl:template>
The [@mmid] constrains the selection to child Mediendaten elements that carry the mmid attribute, the [1] constrains the selection to the first one of these.
P.S. Whoever designed the XML you are using hates you. (Using the same name for both kinds of element now labeled Mediendaten
is a dirty rotten trick; it makes everything you do with the data harder. Try to figure out what you did to piss them off so badly, and make amends to them. Just a word to the wise.)