2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:svg="http://www.w3.org/2000/svg"
5 <xsl:output method="xml" encoding="UTF-8" />
8 The first rule replaces a <tspan> inside of a <text> with its
11 <xsl:template match="svg:text/svg:tspan">
12 <xsl:value-of select="text()" />
16 Then this rule matches everything, and copies it while applying
17 any relevant templates to its children. Either we'll hit a <tspan>
18 within a <text> and process it, or we'll hit this rule again.
20 <xsl:template match="*|@*">
22 <xsl:apply-templates select="*|@*" />