summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 663e35e)
raw | patch | inline | side by side (parent: 663e35e)
| author | gouldtj <gouldtj@users.sourceforge.net> | |
| Wed, 29 Mar 2006 05:43:08 +0000 (05:43 +0000) | ||
| committer | gouldtj <gouldtj@users.sourceforge.net> | |
| Wed, 29 Mar 2006 05:43:08 +0000 (05:43 +0000) |
An XSLT script to remove the cruft from Adobe SVG files.
| share/extensions/ill2svg.xslt | [new file with mode: 0644] | patch | blob |
diff --git a/share/extensions/ill2svg.xslt b/share/extensions/ill2svg.xslt
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>\r
+<xsl:stylesheet xml:space="default" version="2.0" \r
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
+xmlns="http://www.w3.org/2000/svg"\r
+xmlns:svg="http://www.w3.org/2000/svg"\r
+xmlns:xlink="http://www.w3.org/1999/xlink"\r
+xmlns:x="http://ns.adobe.com/Extensibility/1.0/" \r
+xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" \r
+xmlns:graph="http://ns.adobe.com/Graphs/1.0/" \r
+xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" >\r
+<xsl:output indent="yes"/>\r
+ <xsl:template match="/">\r
+ <xsl:apply-templates />\r
+ </xsl:template>\r
+ <xsl:template match="*">\r
+ <xsl:copy>\r
+ <xsl:apply-templates select="@*|node()|text"/>\r
+ </xsl:copy>\r
+ </xsl:template>\r
+ <xsl:template match="@*">\r
+ <xsl:copy/>\r
+ </xsl:template>\r
+ <xsl:template match="i:*|@i:*|x:*|@x:*|graph:*|@graph:*|a:*|@a:*">\r
+ </xsl:template>\r
+</xsl:stylesheet>
\ No newline at end of file