<p>I have an XML input file and I'm trying to output the result of a call like:  </p>

<pre><code>&lt;xsl:value-of select="Some/Value"/&gt;  
</code></pre>

<p>into an attribute.  </p>

<pre><code>&lt;Output Attribute="Value should be put here"/&gt;
</code></pre>

<p>My problem is, since I'm outputting XML, the XSL processor won't allow me to write:  </p>

<pre><code>&lt;Output Attribute="&lt;xsl:value-of select="Some/Value"/&gt;"&gt;
</code></pre>

<p>How do you accomplish this?</p>

You can use an xsl:attribute element:
```
```
<Output>
  <xsl:attribute name="Attribute">
    <xsl:value-of select="Some/Value"/>
  </xsl:attribute>
</Output>
```
```