diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/gfx/demos/data/svg2gfx.xsl | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/gfx/demos/data/svg2gfx.xsl')
-rw-r--r-- | includes/js/dojox/gfx/demos/data/svg2gfx.xsl | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/includes/js/dojox/gfx/demos/data/svg2gfx.xsl b/includes/js/dojox/gfx/demos/data/svg2gfx.xsl deleted file mode 100644 index 90a463f..0000000 --- a/includes/js/dojox/gfx/demos/data/svg2gfx.xsl +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Super simple XSLT to convert Nils.svg and Lars.svg to our format --> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <xsl:output method="text" version="1.0" encoding="UTF-8"/> - <xsl:template name="fill"> - <xsl:param name="node"/> - <xsl:if test="count($node/@fill) > 0"> - <xsl:text>fill: "</xsl:text> - <xsl:value-of select="$node/@fill"/> - <xsl:text>",</xsl:text> - </xsl:if> - </xsl:template> - <xsl:template name="stroke"> - <xsl:param name="node"/> - <xsl:text>stroke: {</xsl:text> - <xsl:if test="count($node/@stroke) > 0"> - <xsl:text>color: "</xsl:text> - <xsl:value-of select="$node/@stroke"/> - <xsl:text>",</xsl:text> - </xsl:if> - <xsl:if test="count($node/@stroke-width) > 0"> - <xsl:text>width: "</xsl:text> - <xsl:value-of select="$node/@stroke-width"/> - <xsl:text>",</xsl:text> - </xsl:if> - <xsl:if test="count($node/@stroke-linecap) > 0"> - <xsl:text>cap: "</xsl:text> - <xsl:value-of select="$node/@stroke-linecap"/> - <xsl:text>",</xsl:text> - </xsl:if> - <xsl:if test="count($node/@stroke-linejoin) > 0"> - <xsl:text>join: "</xsl:text> - <xsl:value-of select="$node/@stroke-linejoin"/> - <xsl:text>",</xsl:text> - </xsl:if> - <xsl:text>},</xsl:text> - </xsl:template> - <xsl:template match="g"> - <xsl:text>{</xsl:text> - <xsl:if test="count(@id) > 0"> - <xsl:text>name: "</xsl:text> - <xsl:value-of select="@id"/> - <xsl:text>",</xsl:text> - </xsl:if> - <xsl:text>children: [</xsl:text> - <xsl:apply-templates select="g|path"/> - <xsl:text>]},</xsl:text> - </xsl:template> - <xsl:template match="path"> - <xsl:text>{</xsl:text> - <xsl:if test="count(@id) > 0"> - <xsl:text>name: "</xsl:text> - <xsl:value-of select="@id"/> - <xsl:text>",</xsl:text> - </xsl:if> - <xsl:text>shape: {type: "path", path: "</xsl:text> - <xsl:value-of select="@d"/> - <xsl:text>"},</xsl:text> - <xsl:call-template name="fill"> - <xsl:with-param name="node" select="."/> - </xsl:call-template> - <xsl:call-template name="stroke"> - <xsl:with-param name="node" select="."/> - </xsl:call-template> - <xsl:text>},</xsl:text> - </xsl:template> - <xsl:template match="svg"> - <xsl:text>[</xsl:text> - <xsl:apply-templates select="g|path"/> - <xsl:text>]</xsl:text> - </xsl:template> -</xsl:stylesheet> |