[yelp-xsl] [mal2html-svg] Use wrapper div for SVG even when embedding in XHTML
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [mal2html-svg] Use wrapper div for SVG even when embedding in XHTML
- Date: Tue, 9 Mar 2010 23:22:33 +0000 (UTC)
commit 6b4f9b48f978ed8c78662e697829224a65890a6e
Author: Shaun McCance <shaunm gnome org>
Date: Tue Mar 9 17:22:08 2010 -0600
[mal2html-svg] Use wrapper div for SVG even when embedding in XHTML
xslt/mallard/html/mal2html-svg.xsl | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-svg.xsl b/xslt/mallard/html/mal2html-svg.xsl
index 1116a01..9430f6a 100644
--- a/xslt/mallard/html/mal2html-svg.xsl
+++ b/xslt/mallard/html/mal2html-svg.xsl
@@ -84,7 +84,7 @@ REMARK: Describe this module
</xsl:variable>
<xsl:choose>
<xsl:when test="$mal2html.namespace = ''">
- <div>
+ <div class="svg">
<object data="{$id}.svg" type="image/svg+xml">
<xsl:copy-of select="@width"/>
<xsl:copy-of select="@height"/>
@@ -95,7 +95,9 @@ REMARK: Describe this module
</exsl:document>
</xsl:when>
<xsl:otherwise>
- <xsl:apply-templates mode="mal2html.svg.mode" select="."/>
+ <div class="svg">
+ <xsl:apply-templates mode="mal2html.svg.mode" select="."/>
+ </div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]