title: xslt map for each loop
body: <pre><code>&lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns="urn:schemas-microsoft-com:office:spreadsheet"
      xmlns:o="urn:schemas-microsoft-com:office:office"
      xmlns:x="urn:schemas-microsoft-com:office:excel"
      xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
      xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:pi="urn:com.workday/picof"&gt;
  </code></pre>
  
  <p>I have the following map:</p>
  
  <pre><code>    &lt;xsl:variable name="tabsNames"&gt;
          &lt;entry&gt;&lt;name&gt;A&lt;/name&gt;&lt;value&gt;one&lt;/value&gt;&lt;/entry&gt;
          &lt;entry&gt;&lt;name&gt;B&lt;/name&gt;&lt;value&gt;two&lt;/value&gt;&lt;/entry&gt;
      &lt;/xsl:variable&gt;
  </code></pre>
  
  <p>I would like to iterate the map to get each key and value assigned to a variable:</p>
  
  <pre><code>&lt;xsl:for-each select="$tabsNames/element()"&gt;
       &lt;xsl:variable name="tabName" select="./entry/name"/&gt;
       &lt;xsl:variable name="tabValue" select="./entry/value"/&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>How should the select look like in order to get name and value?</p>