<xsl:output method="xml" encoding="UTF-8" />
<!--
- The first rule replaces a <tspan> directly inside of a <text> with
- its contents. The "directly" part is important because we actually
- use tspans in one place, for the origin -> destination. We don't
- want to clobber THOSE tspans, but we can avoid it by putting them
- in a group (<g>).
+ This empty template for the xml:space attribute removes it from
+ any element where it is found. Inkscape adds it automatically, but
+ we don't rely on it, and it's been deprecated for a while:
+
+ https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xml:space
+
+ -->
+ <xsl:template match="@xml:space" />
+
+ <!--
+ This rule replaces a <tspan> directly inside of a <text> with its
+ contents. The "directly" part is important because we actually use
+ tspans in one place, for the origin -> destination. We don't want
+ to clobber THOSE tspans, but we can avoid it by putting them in a
+ group (<g>).
-->
<xsl:template match="svg:text/svg:tspan">
<xsl:value-of select="text()" />