cookbook: Tweak so that videos sit inside a paragraph for better spacing

This commit is contained in:
Elliot Smith 2010-07-15 17:24:50 +01:00
parent ec7b0b4389
commit 489799bb4d

View File

@ -3,16 +3,18 @@
<xsl:include href="ref-html-style.xsl"/>
<xsl:template match="inlinemediaobject" priority="100">
<video controls="controls">
<xsl:attribute name="src"><xsl:value-of select="videoobject/videodata/@fileref"/></xsl:attribute>
<!-- fallback link to video for non-HTML 5 browsers -->
<a>
<xsl:attribute name="href">
<xsl:value-of select="videoobject/videodata/@fileref"/>
</xsl:attribute>
<xsl:apply-templates select="alt"/>
</a>
</video>
<p>
<video controls="controls">
<xsl:attribute name="src"><xsl:value-of select="videoobject/videodata/@fileref"/></xsl:attribute>
<!-- fallback link to video for non-HTML 5 browsers -->
<a>
<xsl:attribute name="href">
<xsl:value-of select="videoobject/videodata/@fileref"/>
</xsl:attribute>
<xsl:apply-templates select="alt"/>
</a>
</video>
</p>
</xsl:template>
</xsl:stylesheet>