title: Can the name of a Schematron phase name be bound to a global variable or parameter?
body: <p>I would like to alter a key parameter in a Schematron + XSLT project that affects the depth of validation, and the most convenient way would be to bind the name of the Schematron phase to a global variable (or an  within the Schematron file)</p>
  
  <p>I have a workaround, where a Schematron  is tethered to a corresponding  that defines a particular , and that works, but it means that each phase has to change the variable of a unique parameter name, because it is not legal to include in a single file multiple s (or s) for the same parameter (variable).</p>
  
  <pre class="lang-xml prettyprint-override"><code>   &lt;phase id="terse"&gt;
        &lt;active pattern="core-tests"/&gt;
        &lt;active pattern="terse-true"/&gt;
     &lt;/phase&gt;
     &lt;phase id="verbose"&gt;
        &lt;active pattern="core-tests"/&gt;
        &lt;active pattern="verbose-true"/&gt;
     &lt;/phase&gt;
     &lt;pattern id="terse-true"&gt;
        &lt;xsl:param name="validation-is-terse" select="true()"/&gt;
     &lt;/pattern&gt;
     &lt;pattern id="verbose-true"&gt;
        &lt;xsl:param name="validation-is-verbose" select="true()"/&gt;
     &lt;/pattern&gt;
  </code></pre>
  
  <p>I would prefer to write something like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>   &lt;xsl:param name="validation-depth" select="{$phase}"/&gt;
     &lt;phase id="terse"&gt;
        &lt;active pattern="core-tests"/&gt;
     &lt;/phase&gt;
     &lt;phase id="verbose"&gt;
        &lt;active pattern="core-tests"/&gt;
     &lt;/phase&gt;
  </code></pre>