This XPath expression will give you the result you need:
//image[@size='medium']
This is a very simple XPath question. I suggest you familiarize yourself with some examples of the W3C School XPath tutorial , because XPath is a very expressive and useful tool.
To use this in an XSL stylesheet, you probably start with something like this:
<xsl:template match="/"> <xsl:value-of select="//image[@size='medium']"/> </xsl:template>
Again, this is a very simple XSL, so if you want to know more, I would advise you to take a look at the W3C School XSLT tutorial , Where I go when I need to see details about things that I may have forgotten.
source share