Umbraco/Samples and Articles/XSLT/Embed FlashPlayer

This XSLT will allow you to embed a FlashPlayer instance in a page and load the content specified by 3 parameters in a macro - flashFile, width and height. To test this XSLT create a new macro with three parameters 1. FlashFile - media content type 2. width - number 3. height - number

Now you can insert this macro in a template or content page and the specified flash file will embed correctly.  <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp " "> ]> 









          <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed quality="high" bgcolor="#ffffff" name="flashControl" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> <xsl:attribute name="width"> <xsl:value-of select="/macro/width" /> </xsl:attribute> <xsl:attribute name="height"> <xsl:value-of select="/macro/height" /> </xsl:attribute> <xsl:attribute name="src"> <xsl:value-of select="$flashFile/node/data [@alias='umbracoFile']" /> </xsl:attribute>

</xsl:template>

</xsl:stylesheet>