title: XSLT for selecting specific nodes
body: <p>I'm having trouble obtaining data with a macro I've created using XSLT. I have several <code>EventData</code> nodes which I would like to access from a page in another Content folder.</p>
  
  <p>I've tried many different queries (too many to post) but my latest one is below. I had this working when the Event Data was below the standard page but I have since moved them to their own folder and haven't managed to successfully update the XSLT.</p>
  
  <p><strong>XML:</strong></p>
  
  <pre><code>&lt;root id="-1"&gt;
    &lt;HomeTemplate id="1055" parentID="-1" level="1"&gt;
      &lt;ContentFolder id="1097" parentID="1055" level="2"&gt;
        &lt;EventData id="1095" parentID="1097" level="3"&gt;
         &lt;eventDate&gt;2012-06-20T00:00:00&lt;/eventDate&gt;
         &lt;eventName&gt;Event Name Data&lt;/eventName&gt;
         &lt;eventLocation&gt;Event Location Data&lt;/eventLocation&gt;
        &lt;/EventData&gt;
      .......
      &lt;/ContentFolder&gt;
      &lt;ContentFolder id="1059" parentID="1055" level="2"&gt;
        &lt;StandardTemplate id="1061" parentID="1059" level="3"&gt;
          &lt;pageHeading&gt;Results&lt;/pageHeading&gt;
          .......
        &lt;/StandardTemplate&gt;
      &lt;/ContentFolder&gt;
    ......
    &lt;/HomeTemplate&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p><strong>XSLT:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE xsl:stylesheet [ &lt;!ENTITY nbsp "&amp;#x00A0;"&gt; ]&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:output method="xml" omit-xml-declaration="yes"/&gt;
  &lt;xsl:param name="currentPage"/&gt;
  &lt;xsl:template match="/"&gt;
    &lt;table&gt;
      &lt;xsl:for-each select="EventData"&gt;
        &lt;tr&gt;
          &lt;td&gt;Event Date: &lt;xsl:value-of select="umbraco.library:FormatDateTime(./eventDate, 'd')"/&gt;&lt;/td&gt;
          &lt;td&gt;Event Name: &lt;xsl:value-of select="./eventName"/&gt;&lt;/td&gt;
          &lt;td&gt;Event Location: &lt;xsl:value-of select="./eventLocation"/&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/xsl:for-each&gt;
    &lt;/table&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>EDIT: </p>
  
  <pre><code>&lt;xsl:for-each select="umbraco.library:GetXmlNodeById(1097)/EventData"&gt;
  </code></pre>
  
  <p>The above works but I ideally want something that would select by type so isn't hard coded.</p>