summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b66659a)
raw | patch | inline | side by side (parent: b66659a)
author | JazzyNico <JazzyNico@users.sourceforge.net> | |
Wed, 10 Jun 2009 17:28:43 +0000 (17:28 +0000) | ||
committer | JazzyNico <JazzyNico@users.sourceforge.net> | |
Wed, 10 Jun 2009 17:28:43 +0000 (17:28 +0000) |
share/extensions/svg2xaml.xsl | patch | blob | history |
index c5b6c803f714a10176b9ec719e41b8ae9d769d99..cf8f78f744ab6a24651bce01a1209da6fdbba8fe 100644 (file)
</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
</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