title: XSL FO Match On First Child Node With Specific Attribute Value
body: <p>I have an FO stylesheet where I want to match on the first occurrence of a particular node with a particular attribute value.  In the example below, I want to match on the first <code>&lt;dataSet&gt;</code> node where the name attribute equals 'MYNAME'.</p>
  
  <pre><code>&lt;xsl:template match="dataSet[@name='MYNAME'][1]"&gt;
  ...
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;dataSet name='ALERTS'&gt;
  ...
  &lt;/dataSet&gt;
  &lt;dataSet name='MYNAME'&gt;
  ...
  &lt;/dataSet&gt;
  &lt;dataSet name='MYNAME'&gt;
  ...
  &lt;/dataset&gt;
  </code></pre>
  
  <p>The above template match does not work.  What is the proper way to get the desired node?</p>