title: XSLT: insert parameter value inside of an html attribute
body: <p>How can I insert the youtubeId parameter in the following code :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE xsl:stylesheet [ &lt;!ENTITY nbsp "&amp;#x00A0;"&gt; ]&gt;
  &lt;xsl:stylesheet 
      version="1.0" 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
                  xmlns:YouTube="urn:YouTube"
      xmlns:umbraco.library="urn:umbraco.library"
      exclude-result-prefixes="msxml umbraco.library YouTube"&gt;
  
  
  &lt;xsl:output method="xml" omit-xml-declaration="yes"/&gt;
  
   &lt;xsl:param name="videoId"/&gt;
  &lt;xsl:template match="/"&gt;
   &lt;a href="{$videoId}"&gt;{$videoId}&lt;/a&gt;
  
  &lt;object width="425" height="355"&gt;
  &lt;param name="movie" value="http://www.youtube.com/v/{$videoId}&amp;amp;hl=en"&gt;&lt;/param&gt;
  &lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;
  &lt;embed src="http://www.youtube.com/v/{$videoId}&amp;amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;
  &lt;/object&gt;$videoId {$videoId} {$videoId}
   &lt;xsl:value-of select="/macro/videoId" /&gt;
  &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p><code>&lt;xsl:value-of select="/macro/videoId" /&gt;</code> actually outputs the videoId but all other occurences do not. </p>
  
  <p>I am creating a macro in Umbraco CMS. The parameter is correctly passed into the XSLT (because  actually outputs its value). <strong>How can I insert this value into the src-attribute?</strong></p>