2
<xsl:stylesheet version="1.0"
3
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
xmlns:smi="http://www.freedesktop.org/standards/shared-mime-info">
7
Since a namespace is declared in the XML document, this stylesheet
8
needs to declare it as well to be able to match the various elements,
9
that's why there's xmlns:smi above, and smi:mime-* below.
12
<!-- Identity template. -->
13
<xsl:template match="@*|node()">
15
<xsl:apply-templates select="@*|node()"/>
19
<!-- Remove unneeded elements. -->
20
<xsl:template match='smi:mime-type[@type!="image/png"]' />
22
<!-- Avoid plenty of empty lines. -->
23
<xsl:strip-space elements="smi:mime-info" />