diff options
| author | Ted Gould <ted@gould.cx> | 2006-03-29 05:43:08 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-03-29 05:43:08 +0000 |
| commit | 9fb53480ab793aed3916b2e13132fd74b398b9d4 (patch) | |
| tree | 2410abd41972e0aca276c0879b2bd1633eaf9eab | |
| parent | r11026@tres: ted | 2006-03-02 00:03:49 -0800 (diff) | |
| download | inkscape-9fb53480ab793aed3916b2e13132fd74b398b9d4.tar.gz inkscape-9fb53480ab793aed3916b2e13132fd74b398b9d4.zip | |
r11027@tres: ted | 2006-03-02 23:42:47 -0800
An XSLT script to remove the cruft from Adobe SVG files.
(bzr r354)
| -rw-r--r-- | share/extensions/ill2svg.xslt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/share/extensions/ill2svg.xslt b/share/extensions/ill2svg.xslt new file mode 100644 index 000000000..146a439b8 --- /dev/null +++ b/share/extensions/ill2svg.xslt @@ -0,0 +1,25 @@ +<?xml version="1.0"?>
+<xsl:stylesheet xml:space="default" version="2.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+xmlns="http://www.w3.org/2000/svg"
+xmlns:svg="http://www.w3.org/2000/svg"
+xmlns:xlink="http://www.w3.org/1999/xlink"
+xmlns:x="http://ns.adobe.com/Extensibility/1.0/"
+xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/"
+xmlns:graph="http://ns.adobe.com/Graphs/1.0/"
+xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" >
+<xsl:output indent="yes"/>
+ <xsl:template match="/">
+ <xsl:apply-templates />
+ </xsl:template>
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()|text"/>
+ </xsl:copy>
+ </xsl:template>
+ <xsl:template match="@*">
+ <xsl:copy/>
+ </xsl:template>
+ <xsl:template match="i:*|@i:*|x:*|@x:*|graph:*|@graph:*|a:*|@a:*">
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file |
