title: How do you access an element by its attribute value using XSL transforms and XML?
body: <p>Im trying to transform an XML document into XHTML using XSL transformation and was wondering how i can choose an XML element given the value of its attribute. e.g.</p>
  
  <pre><code>&lt;image size="small"&gt;http:example.small.jpg&lt;/image&gt;
  &lt;image size="medium"&gt;http:example.medium.jpg&lt;/image&gt;
  &lt;image size="large"&gt;http:example.largw.jpg&lt;/image&gt;
  </code></pre>
  
  <p>I only want to access the value "http:example.medium.jpg" from the image tag where size="medium".</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Ally</p>