diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
commit | 35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch) | |
tree | 657d15a03cc46bd099fc2c6546a7a4ad43815d9f /share/extensions/aisvg.xslt | |
parent | Initial commit. (diff) | |
download | inkscape-a6567f8d928319d85ab4231bf20a5c4aae93fb2b.tar.xz inkscape-a6567f8d928319d85ab4231bf20a5c4aae93fb2b.zip |
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/aisvg.xslt')
-rw-r--r-- | share/extensions/aisvg.xslt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/share/extensions/aisvg.xslt b/share/extensions/aisvg.xslt new file mode 100644 index 0000000..15397da --- /dev/null +++ b/share/extensions/aisvg.xslt @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<xsl:stylesheet xml:space="default" version="1.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/" +xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" +> +<xsl:output indent="yes"/> + <xsl:template match="/"> + <xsl:apply-templates /> + </xsl:template> + <xsl:template match="svg:svg/svg:switch[count(*)=2][name(*[1])='foreignObject']"> + <xsl:apply-templates select="*[not(name()='foreignObject')]/*"/> + </xsl:template> + <xsl:template match="svg:svg/svg:g | svg:g[@i:extraneous='self']/svg:g"> + <xsl:copy> + <xsl:attribute name="inkscape:groupmode">layer</xsl:attribute> + <xsl:apply-templates select="@*|*"/> + </xsl:copy> + </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> |