|
|
|
@ -32,91 +32,89 @@
|
|
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
|
|
|
<html>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
<head>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
this looks awfully ugly, but nevertheless generates javascript inside _valid_ XHTML
|
|
|
|
|
kudos to toby white who details the solution on http://scispace.net/tow21/weblog/718.html
|
|
|
|
|
-->
|
|
|
|
|
<link
|
|
|
|
|
rel="stylesheet"
|
|
|
|
|
type="text/css"
|
|
|
|
|
media="screen"
|
|
|
|
|
href="/style/embedded.css"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<xsl:text disable-output-escaping="yes"><![CDATA[
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
|
|
|
|
function hide_movie()
|
|
|
|
|
{
|
|
|
|
|
document.getElementById('video').style.display = 'none';
|
|
|
|
|
document.getElementById('preview').style.display = 'block';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function show_movie()
|
|
|
|
|
{
|
|
|
|
|
document.getElementById('video').style.display = 'block';
|
|
|
|
|
document.getElementById('preview').style.display = 'none';
|
|
|
|
|
window.setTimeout("hide_movie()",
|
|
|
|
|
]]>
|
|
|
|
|
</xsl:text>
|
|
|
|
|
<!--
|
|
|
|
|
window.setTimeout is the stupidest hack i could imagine
|
|
|
|
|
it doesn't work reliably because of BUFFERING, but
|
|
|
|
|
3 seconds for initializing should be enough for short video ...
|
|
|
|
|
-->
|
|
|
|
|
<xsl:value-of select="(//video/@duration + 3) * 1000" />
|
|
|
|
|
<xsl:text disable-output-escaping="yes">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
]]]]></xsl:text>
|
|
|
|
|
<xsl:text disable-output-escaping="yes">></xsl:text>
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body onload="hide_movie()">
|
|
|
|
|
|
|
|
|
|
<!-- <xsl:call-template name="video-script" />-->
|
|
|
|
|
<xsl:call-template name="video-script" />
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="video-object" />
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<xsl:template name="video-object">
|
|
|
|
|
|
|
|
|
|
<fieldset id="video">
|
|
|
|
|
|
|
|
|
|
<legend>
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='fieldset_video']" />-->
|
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
|
|
<object id="video" type="application/ogg">
|
|
|
|
|
<xsl:template name="video-script">
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
this looks awfully ugly, but nevertheless generates javascript inside _valid_ XHTML
|
|
|
|
|
kudos to toby white who details the solution on http://scispace.net/tow21/weblog/718.html
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<xsl:text disable-output-escaping="yes"><![CDATA[
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
|
|
|
|
function hide_movie()
|
|
|
|
|
{
|
|
|
|
|
document.getElementById('video').style.display = 'none';
|
|
|
|
|
document.getElementById('preview').style.display = 'block';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function show_movie()
|
|
|
|
|
{
|
|
|
|
|
document.getElementById('video').style.display = 'block';
|
|
|
|
|
document.getElementById('preview').style.display = 'none';
|
|
|
|
|
window.setTimeout("hide_movie()",
|
|
|
|
|
]]>
|
|
|
|
|
</xsl:text>
|
|
|
|
|
<!--
|
|
|
|
|
window.setTimeout is the stupidest hack i could imagine
|
|
|
|
|
it doesn't work reliably because of BUFFERING, but
|
|
|
|
|
3 seconds for initializing should be enough for short video ...
|
|
|
|
|
-->
|
|
|
|
|
<xsl:value-of select="(//video/@duration + 3) * 1000" />
|
|
|
|
|
<xsl:text disable-output-escaping="yes">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
]]]]></xsl:text>
|
|
|
|
|
<xsl:text disable-output-escaping="yes">></xsl:text>
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<xsl:attribute name="width">
|
|
|
|
|
<xsl:value-of select="//video/@width" />
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="height">
|
|
|
|
|
<xsl:value-of select="//video/@height" />
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="data">
|
|
|
|
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<fieldset class="messagebox" id="error">
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<span class="message">
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='error_no_ogg_plugin']" />-->
|
|
|
|
|
</span>
|
|
|
|
|
</fieldset>
|
|
|
|
|
<xsl:template name="video-object">
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="pluginhelp" />
|
|
|
|
|
<object id="video" type="application/ogg">
|
|
|
|
|
|
|
|
|
|
</object>
|
|
|
|
|
<xsl:attribute name="width">
|
|
|
|
|
<xsl:value-of select="//video/@width" />
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="height">
|
|
|
|
|
<xsl:value-of select="//video/@height" />
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="data">
|
|
|
|
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
enjoy your NOT OGG
|
|
|
|
|
|
|
|
|
|
<fieldset id="preview" style="display: none;">
|
|
|
|
|
</object>
|
|
|
|
|
|
|
|
|
|
<legend>
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='fieldset_preview']" />-->
|
|
|
|
|
</legend>
|
|
|
|
|
<div id="preview">
|
|
|
|
|
|
|
|
|
|
<img>
|
|
|
|
|
<xsl:attribute name="src">
|
|
|
|
@ -143,11 +141,11 @@ kudos to toby white who details the solution on http://scispace.net/tow21/weblog
|
|
|
|
|
onclick="show_movie()"
|
|
|
|
|
>
|
|
|
|
|
<xsl:attribute name="value">
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_playback']" />-->
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_playback']" />-->
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<img src="/images/tango/128x128/actions/player_play.png">
|
|
|
|
|
<xsl:attribute name="alt">
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_playback']" />-->
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_playback']" />-->
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</img>
|
|
|
|
|
</button>
|
|
|
|
@ -156,17 +154,17 @@ kudos to toby white who details the solution on http://scispace.net/tow21/weblog
|
|
|
|
|
type="submit"
|
|
|
|
|
>
|
|
|
|
|
<xsl:attribute name="value">
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_download']" />-->
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_download']" />-->
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<img src="/images/tango/128x128/actions/document-save.png">
|
|
|
|
|
<xsl:attribute name="alt">
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_download']" />-->
|
|
|
|
|
<!-- <xsl:value-of select="$lang_strings[@id='video_download']" />-->
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</img>
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|