title: Create node set and pass as a parameter
body: <p>Using XSLT 1.0, I'm trying to essentially create a small node set and then pass it as a parameter to a template, something like the following:</p>
  
  <pre><code>&lt;xsl:call-template name="widget"&gt;
    &lt;xsl:with-param name="flags"&gt;
      &lt;items&gt;
        &lt;item&gt;widget.recent-posts.trim-length=100&lt;/item&gt;
        &lt;item&gt;widget.recent-posts.how-many=3&lt;/item&gt;
        &lt;item&gt;widget.recent-posts.show-excerpt&lt;/item&gt;
      &lt;/items&gt;
    &lt;/xsl:with-param&gt;
  &lt;/xsl:call-template&gt;
  </code></pre>
  
  <p>The idea is that then from within the <code>widget</code> template I could write something like:</p>
  
  <pre><code>&lt;xsl:value-of select="$flags/item[1]" /&gt;
  </code></pre>
  
  <p>Obviously I get compile errors.. how can I achieve this sort of thing?</p>