title: XSLT - How to use "value-of select=" when 2 xml tags share the same attribute name
body: <p>I am working on the following xml file:</p>
  
  <pre><code>&lt;relational:BaseTable name="Table1"&gt;
      &lt;columns name="Column1" Type="Number" &lt;/columns&gt;
      &lt;columns name="Column2" Type="Date" &lt;/columns&gt;
   ....
  </code></pre>
  
  <p> </p>
  
  <p>I want create a CSV file like this</p>
  
  <pre><code>Table1, Column1, Number
  Table1, Column1, Date
  Table2, ...
  </code></pre>
  
  <p>I have figured out how to loop through the xml and format the output as csv. What the code below is missing is a way to repeat the name of the tables at the start of each line. I cannot figure out how to reference the "name" attribute of the parent (relational:BaseTable) tag.</p>
  
  <pre><code>&lt;xsl:for-each select="relational:BaseTable"&gt;
     &lt;xsl:for-each select="columns"&gt;
        &lt;xsl:value-of select="@name"/&gt;,&lt;xsl:value-of select="@type"/&gt;
        &lt;xsl:text&gt;&amp;#10;&lt;/xsl:text&gt;
  &lt;/xsl:for-each&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>Thanks</p>