title: xsltproc command line parameters using stringparam
body: <p>I am attempting to compose a style sheet that, given an XML input (obviously) and a parameter that specifies a "target", will produce a list of commands that match that target.  Here is the style sheet as written:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt;
    &lt;xsl:param name="target" select="cora_cmd"/&gt;
    &lt;xsl:output method="xml" indent="yes"/&gt;
    &lt;xsl:template match="command/program"&gt;
      &lt;xsl:if test="@name=$target"&gt;
        &lt;xsl:message terminate="no"&gt;found match &lt;xsl:value-of select="$target"/&gt;   &lt;/xsl:message&gt;
        &lt;xi:include xmlns:xi="http://www.w3.org/2003/XInclude"&gt;
          &lt;xsl:attribute name="href"&gt;&lt;xsl:value-of select="../@help"/&gt;&lt;/xsl:attribute&gt;
        &lt;/xi:include&gt;
      &lt;/xsl:if&gt;
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I am invoking xsltproc to execute this style sheet as follows:</p>
  
  <pre><code>xsltproc --param target cora_cmd gen-commands.xsl commands.xml
  </code></pre>
  
  <p>The problem that I am encountering is that the parameter value for target does not seem to get set.  At least the name that comes from the message appears to be an empty string and the test for xsl:if always fails.  I am certain that this is due to some bone-headed mistake on my part but I've yet to recognise it.  Does anybody know what I've done wrong?</p>