summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-06-12 07:09:22 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-06-12 07:09:22 +0000
commit9e864985a7599c22ca5a60e2a799c0e67d3e17fa (patch)
treee73b2762d0285960ce5167befce99d4e36f6ae48
parentCmake: Fix Dependencies with multiple include directories. (diff)
downloadinkscape-9e864985a7599c22ca5a60e2a799c0e67d3e17fa.tar.gz
inkscape-9e864985a7599c22ca5a60e2a799c0e67d3e17fa.zip
patch 234972
(bzr r5895)
-rw-r--r--share/extensions/svg2xaml.xsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/share/extensions/svg2xaml.xsl b/share/extensions/svg2xaml.xsl
index faffb9ad9..c5b6c803f 100644
--- a/share/extensions/svg2xaml.xsl
+++ b/share/extensions/svg2xaml.xsl
@@ -306,11 +306,25 @@ exclude-result-prefixes="rdf xlink msxsl">
<xsl:template mode="stroke_linecap" match="*">
<xsl:choose>
<xsl:when test="@stroke-linecap">
+ <xsl:attribute name="StrokeStartLineCap">
+ <xsl:call-template name="linecap_svg_to_xaml"><xsl:with-param name="linecap"><xsl:value-of select="@stroke-linecap" /></xsl:with-param></xsl:call-template>
+ </xsl:attribute>
<xsl:attribute name="StrokeEndLineCap">
<xsl:call-template name="linecap_svg_to_xaml"><xsl:with-param name="linecap"><xsl:value-of select="@stroke-linecap" /></xsl:with-param></xsl:call-template>
</xsl:attribute></xsl:when>
<xsl:when test="@style and contains(@style, 'stroke-linecap:')">
+ <xsl:variable name="StrokeStartLineCap" select="substring-after(@style, 'stroke-linecap:')" />
<xsl:variable name="StrokeEndLineCap" select="substring-after(@style, 'stroke-linecap:')" />
+ <xsl:attribute name="StrokeStartLineCap">
+ <xsl:choose>
+ <xsl:when test="contains($StrokeStartLineCap, ';')">
+ <xsl:call-template name="linecap_svg_to_xaml"><xsl:with-param name="linecap"><xsl:value-of select="substring-before($StrokeStartLineCap, ';')" /></xsl:with-param></xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="linecap_svg_to_xaml"><xsl:with-param name="linecap"><xsl:value-of select="$StrokeStartLineCap" /></xsl:with-param></xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
<xsl:attribute name="StrokeEndLineCap">
<xsl:choose>
<xsl:when test="contains($StrokeEndLineCap, ';')">