This post has been migrated from www.experimentsincode.com, we apologise if some of the images or content is missing

This post has been migrated, original date 22 Dec 2009 If you want to be able to get all the attributes on an XML element including their names you can use the following XSTL:
<xsl:for-each select="./@*">
  <xsl:value-of select="name()"> -
   <xsl:value-of select="."><br>
   </xsl:value-of>
  </xsl:value-of>
</xsl:for-each>