Code

patch 234972
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 12 Jun 2008 07:09:22 +0000 (07:09 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 12 Jun 2008 07:09:22 +0000 (07:09 +0000)
share/extensions/svg2xaml.xsl

index faffb9ad95b1a68866a9fe7f9a28caf4b481b4e1..c5b6c803f714a10176b9ec719e41b8ae9d769d99 100644 (file)
@@ -306,11 +306,25 @@ exclude-result-prefixes="rdf xlink msxsl">
 <xsl:template mode="stroke_linecap" match="*">\r
   <xsl:choose>\r
     <xsl:when test="@stroke-linecap">\r
+      <xsl:attribute name="StrokeStartLineCap">\r
+        <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>\r
+      </xsl:attribute>\r
       <xsl:attribute name="StrokeEndLineCap">\r
         <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>\r
       </xsl:attribute></xsl:when>\r
     <xsl:when test="@style and contains(@style, 'stroke-linecap:')">\r
+      <xsl:variable name="StrokeStartLineCap" select="substring-after(@style, 'stroke-linecap:')" />\r
       <xsl:variable name="StrokeEndLineCap" select="substring-after(@style, 'stroke-linecap:')" />\r
+      <xsl:attribute name="StrokeStartLineCap">\r
+        <xsl:choose>\r
+          <xsl:when test="contains($StrokeStartLineCap, ';')">\r
+            <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>\r
+          </xsl:when>\r
+          <xsl:otherwise>\r
+            <xsl:call-template name="linecap_svg_to_xaml"><xsl:with-param name="linecap"><xsl:value-of select="$StrokeStartLineCap" /></xsl:with-param></xsl:call-template>\r
+          </xsl:otherwise>\r
+        </xsl:choose>  \r
+      </xsl:attribute>\r
       <xsl:attribute name="StrokeEndLineCap">\r
         <xsl:choose>\r
           <xsl:when test="contains($StrokeEndLineCap, ';')">\r