Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm doing a "FlashPlayer"-macro, where I can put three parameters: video, width, heightBut somehow I can only get the video parameter out in the xslt..
my xslt code:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets "><xsl:output method="html" omit-xml-declaration="yes"/><xsl:param name="currentPage"/><xsl:variable name="videopath" select="/macro/video" /><xsl:variable name="videowidth" select="/macro/width" /><xsl:variable name="videoheight" select="/macro/height" /> <!-- ============================================================= --><xsl:template match="/"> <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{$videowidth}" height="{$videoheight}"> <param name="movie" value="{$videopath}" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <object type="application/x-shockwave-flash" data="{$videopath}" width="{$videowidth}" height="{$videoheight}"> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> </object> </object><script type="text/javascript">swfobject.registerObject("FlashID");</script> </xsl:template></xsl:stylesheet>
Possibly, "width" and "height" may be reserved words - if you change the parameter names to "videoWidth" and "videoHeight" does it work?
Mike
Thanks a lot!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Only getting some macro parameters
I'm doing a "FlashPlayer"-macro, where I can put three parameters: video, width, height
But somehow I can only get the video parameter out in the xslt..
my xslt code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:variable name="videopath" select="/macro/video" />
<xsl:variable name="videowidth" select="/macro/width" />
<xsl:variable name="videoheight" select="/macro/height" />
<!-- ============================================================= -->
<xsl:template match="/">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{$videowidth}" height="{$videoheight}">
<param name="movie" value="{$videopath}" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<object type="application/x-shockwave-flash" data="{$videopath}" width="{$videowidth}" height="{$videoheight}">
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
</object>
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</xsl:template>
</xsl:stylesheet>
Possibly, "width" and "height" may be reserved words - if you change the parameter names to "videoWidth" and "videoHeight" does it work?
Mike
Thanks a lot!
is working on a reply...