Code

Translations. French translation minor update.
[inkscape.git] / share / extensions / aisvg.xslt
index 146a439b866e9e36d75ef7617734d9384b39d974..2faebc7f34238bc192f4cc26f008971f0f23c818 100644 (file)
@@ -1,25 +1,36 @@
-<?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
+<?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>