title: xsl template match a node with specific value
body: <p>I am trying to filter the XML by what I get in a parameter.
  What is the correct sintax to match on only those courses that have dep_code equal to 'something' or in this case $department???</p>
  
  <p><strong>XML STRUCTURE IS</strong></p>
  
  <pre><code>     &lt;course&gt;
           &lt;dep_code&gt;&lt;/dep_code&gt;
           &lt;catalog_number&gt;&lt;/catalog_number&gt;
           &lt;course_group&gt;&lt;/course_group&gt;
           &lt;term&gt;&lt;/term&gt;
           &lt;offered&gt;&lt;/offered&gt;
           &lt;course_type&gt;&lt;/course_type&gt;
           &lt;course_level&gt;&lt;/course_level&gt;
           &lt;title&gt;&lt;/title&gt;
           &lt;course_number&gt;&lt;/course_number&gt;
           &lt;meeting_text&gt;&lt;/meeting_text&gt;
           &lt;faculty_text&gt;&lt;/faculty_text&gt;
           &lt;description&gt;&lt;/description&gt;
           &lt;prerequisites&gt;&lt;/prerequisites&gt;
  
        &lt;/course&gt;
  </code></pre>
  
  <p><strong>Parameter defined</strong></p>
  
  <pre><code>&lt;xsl:param name="department" select="'All'" /&gt;
  </code></pre>
  
  <p><strong>Code I have tried</strong>
  I have tried this:</p>
  
  <pre><code>&lt;xsl:template match="course/dep_code/{$department}"&gt;
  </code></pre>
  
  <p>Also this:</p>
  
  <pre><code>&lt;xsl:template match="course/dep_code/$department"&gt;
  
  
  &lt;xsl:template match="course/dep_code eq $department"&gt;
  </code></pre>
  
  <p>I I keep on getting syntactical errors like the following:</p>
  
  <ol>
  <li>F [Saxon-PE 9.4.0.3] Unexpected token "{" in path expression </li>
  <li>F [Saxon-PE 9.4.0.3] A variable reference is not allowed in an XSLT
  pattern (except in a predicate)</li>
  </ol>
  
  <p>Thanks in advance</p>