cookbook: Tweak so that videos sit inside a paragraph for better spacing
This commit is contained in:
parent
ec7b0b4389
commit
489799bb4d
@ -3,16 +3,18 @@
|
|||||||
<xsl:include href="ref-html-style.xsl"/>
|
<xsl:include href="ref-html-style.xsl"/>
|
||||||
|
|
||||||
<xsl:template match="inlinemediaobject" priority="100">
|
<xsl:template match="inlinemediaobject" priority="100">
|
||||||
<video controls="controls">
|
<p>
|
||||||
<xsl:attribute name="src"><xsl:value-of select="videoobject/videodata/@fileref"/></xsl:attribute>
|
<video controls="controls">
|
||||||
<!-- fallback link to video for non-HTML 5 browsers -->
|
<xsl:attribute name="src"><xsl:value-of select="videoobject/videodata/@fileref"/></xsl:attribute>
|
||||||
<a>
|
<!-- fallback link to video for non-HTML 5 browsers -->
|
||||||
<xsl:attribute name="href">
|
<a>
|
||||||
<xsl:value-of select="videoobject/videodata/@fileref"/>
|
<xsl:attribute name="href">
|
||||||
</xsl:attribute>
|
<xsl:value-of select="videoobject/videodata/@fileref"/>
|
||||||
<xsl:apply-templates select="alt"/>
|
</xsl:attribute>
|
||||||
</a>
|
<xsl:apply-templates select="alt"/>
|
||||||
</video>
|
</a>
|
||||||
|
</video>
|
||||||
|
</p>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user