title: Retrieve all the attribute values from XML using XSLT
body: <p>I can't figure out how to access all the attributes in a tag from an XML document.</p>
  
  <p>Let's say I have the following XML:</p>
  
  <pre><code>&lt;names&gt;
    &lt;name firstname="Rocky" lastname="Balboa" divider=", "/&gt;
    &lt;name firstname="Ivan" lastname="Drago" divider=", "/&gt;
  &lt;/names&gt;
  </code></pre>
  
  <p>I want the following output:
  <code>Rocky Balboa, Ivan Drago,</code> </p>
  
  <p>What I currently have is:</p>
  
  <pre><code>&lt;xsl:for-each select="names/name"&gt;
     &lt;xsl:value-of select="@firstname"/&gt;
     &lt;xsl:value-of select="@lastname"/&gt;
     &lt;xsl:value-of select="@divider"/&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>What I'm wondering is if it's possible to do this in just one value-of select instead of having to do three of them. So to clarify, I want to be able to output all the attributes in the tag with one single value-of select. Is this possible?</p>
  
  <p>Thanks.</p>