[yelp-xsl/wip/html5] Drop redundant media label attributes
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl/wip/html5] Drop redundant media label attributes
- Date: Tue, 21 Jun 2016 13:00:38 +0000 (UTC)
commit 86e76dfc573781d19b43ccd3bb8be1480c5b4d7e
Author: Shaun McCance <shaunm gnome org>
Date: Tue Jun 21 08:55:50 2016 -0400
Drop redundant media label attributes
These are now added on the common media controls in the html stylesheet.
No need to add them in the format-specific stylesheets.
xslt/docbook/html/db2html-media.xsl | 20 --------------------
xslt/mallard/html/mal2html-media.xsl | 14 ++------------
2 files changed, 2 insertions(+), 32 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-media.xsl b/xslt/docbook/html/db2html-media.xsl
index 3122123..be2f734 100644
--- a/xslt/docbook/html/db2html-media.xsl
+++ b/xslt/docbook/html/db2html-media.xsl
@@ -61,16 +61,6 @@ calls *{db2html.mediaobject.fallback} for the contents of the #{audio} element.
</xsl:when>
</xsl:choose>
</xsl:attribute>
- <xsl:attribute name="data-play-label">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Play'"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="data-pause-label">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Pause'"/>
- </xsl:call-template>
- </xsl:attribute>
<xsl:call-template name="db2html.mediaobject.fallback">
<xsl:with-param name="node" select="$media"/>
</xsl:call-template>
@@ -199,16 +189,6 @@ attribute on the HTML #{video} element. This template calls
</xsl:choose>
</xsl:attribute>
</xsl:if>
- <xsl:attribute name="data-play-label">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Play'"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="data-pause-label">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Pause'"/>
- </xsl:call-template>
- </xsl:attribute>
<xsl:call-template name="db2html.mediaobject.fallback">
<xsl:with-param name="node" select="$media"/>
</xsl:call-template>
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl
index cb643a0..a9b0ba6 100644
--- a/xslt/mallard/html/mal2html-media.xsl
+++ b/xslt/mallard/html/mal2html-media.xsl
@@ -47,8 +47,8 @@ If ${node} has fallback content, it is used for the #{alt} attribute.
<xsl:param name="node" select="."/>
<xsl:param name="inline" select="false()"/>
<img src="{$node/@src}">
- <xsl:copy-of select="@height"/>
- <xsl:copy-of select="@width"/>
+ <xsl:copy-of select="$node/@height"/>
+ <xsl:copy-of select="$node/@width"/>
<xsl:attribute name="class">
<xsl:text>media </xsl:text>
<xsl:choose>
@@ -174,16 +174,6 @@ in the source to the #{audio} element's fallback content. If ${inline} is
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
- <xsl:attribute name="data-play-label">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Play'"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:attribute name="data-pause-label">
- <xsl:call-template name="l10n.gettext">
- <xsl:with-param name="msgid" select="'Pause'"/>
- </xsl:call-template>
- </xsl:attribute>
<xsl:choose>
<xsl:when test="$inline">
<xsl:apply-templates mode="mal2html.inline.mode" select="$node/node()"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]