cookbook: Tweak so that videos sit inside a paragraph for better spacing
authorElliot Smith <elliot.smith@intel.com>
Thu, 15 Jul 2010 16:24:50 +0000 (17:24 +0100)
committerElliot Smith <elliot.smith@intel.com>
Thu, 15 Jul 2010 16:31:10 +0000 (17:31 +0100)
doc/common/cookbook.xsl

index 9864ab7..8c04ca8 100644 (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>