diff options
-rw-r--r-- | xsl/svg.xsl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xsl/svg.xsl b/xsl/svg.xsl index dd18d72..67b76ef 100644 --- a/xsl/svg.xsl +++ b/xsl/svg.xsl @@ -39,10 +39,15 @@ </object> </xsl:template> - <xsl:template mode="inline-svg" match="svg:*"> + <xsl:template mode="inline-svg" match="@*"> + <xsl:attribute name="{local-name()}"> + <xsl:value-of select="normalize-space(.)"/> + </xsl:attribute> + </xsl:template> + + <xsl:template mode="inline-svg" match="node()"> <xsl:copy> - <xsl:copy-of select="@*"/> - <xsl:apply-templates mode="inline-svg"/> + <xsl:apply-templates mode="inline-svg" select="@*|node()"/> </xsl:copy> </xsl:template> |