Code

svg2xaml patch for Bug #380199 (Exporting to XAML doesn't use culture independent...
authorJazzyNico <JazzyNico@users.sourceforge.net>
Wed, 10 Jun 2009 17:28:43 +0000 (17:28 +0000)
committerJazzyNico <JazzyNico@users.sourceforge.net>
Wed, 10 Jun 2009 17:28:43 +0000 (17:28 +0000)
share/extensions/svg2xaml.xsl

index c5b6c803f714a10176b9ec719e41b8ae9d769d99..cf8f78f744ab6a24651bce01a1209da6fdbba8fe 100644 (file)
@@ -1065,12 +1065,12 @@ exclude-result-prefixes="rdf xlink msxsl">
       </xsl:choose>  \r
     </xsl:variable>\r
     <xsl:if test="@rx">\r
-      <xsl:attribute name="Canvas.Left"><xsl:value-of select="$cx - @rx" /></xsl:attribute>\r
-      <xsl:attribute name="Width"><xsl:value-of select="2 * @rx" /></xsl:attribute>\r
+      <xsl:attribute name="Canvas.Left"><xsl:value-of select='format-number($cx - @rx, "#.#")' /></xsl:attribute>\r
+      <xsl:attribute name="Width"><xsl:value-of select='format-number(2 * @rx, "#.#")' /></xsl:attribute>\r
     </xsl:if>\r
     <xsl:if test="@ry">\r
-      <xsl:attribute name="Canvas.Top"><xsl:value-of select="$cy - @ry" /></xsl:attribute>\r
-      <xsl:attribute name="Height"><xsl:value-of select="2 * @ry" /></xsl:attribute>\r
+      <xsl:attribute name="Canvas.Top"><xsl:value-of select='format-number($cy - @ry, "#.#")' /></xsl:attribute>\r
+      <xsl:attribute name="Height"><xsl:value-of select='format-number(2 * @ry, "#.#")' /></xsl:attribute>\r
     </xsl:if>\r
     <xsl:apply-templates mode="id" select="." />\r
     <xsl:apply-templates mode="template_fill" select="." />\r
@@ -1107,10 +1107,10 @@ exclude-result-prefixes="rdf xlink msxsl">
       </xsl:choose>  \r
     </xsl:variable>\r
     <xsl:if test="@r">\r
-      <xsl:attribute name="Canvas.Left"><xsl:value-of select="$cx - @r" /></xsl:attribute>\r
-      <xsl:attribute name="Canvas.Top"><xsl:value-of select="$cy - @r" /></xsl:attribute>\r
-      <xsl:attribute name="Width"><xsl:value-of select="2 * @r" /></xsl:attribute>\r
-      <xsl:attribute name="Height"><xsl:value-of select="2 * @r" /></xsl:attribute>      \r
+       <xsl:attribute name="Canvas.Left"><xsl:value-of select='format-number($cx - @r, "#.#")' /></xsl:attribute>
+       <xsl:attribute name="Canvas.Top"><xsl:value-of select='format-number($cy - @r, "#.#")' /></xsl:attribute>
+       <xsl:attribute name="Width"><xsl:value-of select='format-number(2 * @r, "#.#")' /></xsl:attribute>
+       <xsl:attribute name="Height"><xsl:value-of select='format-number(2 * @r, "#.#")' /></xsl:attribute>       \r
     </xsl:if>\r
     <xsl:apply-templates mode="id" select="." />\r
     <xsl:apply-templates mode="template_fill" select="." />\r