title: Equivalent for Variable with select expression and non-empty content in XSLT 1.0
body: <p>I have one template (which I cannot change but have to use), that processes the currently selected node, it might look like this (heavily simplified):</p>
  
  <pre><code>&lt;xsl:template name="foreignTemplate"&gt;
      &lt;xsl:value-of select="." /&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>In XSLT 2.0 I could do something like this to bind "." in that template to an arbitrary variable:</p>
  
  <pre><code>&lt;xsl:template match="dummyNode"&gt;
      &lt;xsl:variable name="inputString"&gt;foobar&lt;/xsl:variable&gt;
      &lt;xsl:variable name="result" select="$inputString"&gt;
          &lt;xsl:call-template name="foreignTemplate" /&gt;
      &lt;/xsl:variable&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>Given this source document:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;dummyNode&gt;DUMMY TEXT&lt;/dummyNode&gt;
  </code></pre>
  
  <p>applying the above transformation with an XSLT 2.0 processor would evaluate to "foobar".</p>
  
  <p>However, in XSLT 1.0 xsl:variable-Elements cannot have a select attribute and be non-empty at the same time. How can I achieve the same result in XSLT 1.0?</p>