title: Get first child node in XSLT using local-name()
body: <p>Assume we have this simple xml ...</p>
  
  <pre><code> &lt;books&gt;   
      &lt;book&gt;
         &lt;author/&gt;
         &lt;title/&gt;
      &lt;/book&gt;
      &lt;book&gt;
         &lt;author/&gt;
         &lt;title/&gt;
      &lt;/book&gt;
   &lt;/books&gt;
  </code></pre>
  
  <p>I'm using this xpath to get the elements of the first book instance.</p>
  
  <pre><code>//books[1]/*
  </code></pre>
  
  <p>Returns</p>
  
  <pre><code>&lt;author/&gt;
  &lt;title/&gt;
  </code></pre>
  
  <p>And that works fine, but I have to get it working using local-name(). I've tried the following but none of these work...</p>
  
  <pre><code>//*[local-name()='books']/*
  </code></pre>
  
  <p>this returns repeating author and title elements, not good, I only need them from the first child</p>
  
  <pre><code>//*[local-name()='books'][0]/*
  </code></pre>
  
  <p>this does not return anything</p>
  
  <p>Basically, I want to create a CSV file, so the first line in the output will be a header listing the book attribute names followed by the arbitrary data values. I only need to get the header part working.</p>
  
  <pre><code>author,title
  john,The End is Near
  sally,Looking for Answers
  </code></pre>