-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseparations.xsl
More file actions
45 lines (36 loc) · 1.03 KB
/
separations.xsl
File metadata and controls
45 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.0">
<xsl:output method="xml"/>
<xsl:strip-space elements="*"/>
<xsl:param name="group" select="'group'"/>
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="svg:path">
<xsl:if test="$group=@class">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:if>
</xsl:template>
<xsl:template match="svg:g">
<xsl:choose>
<xsl:when test="'links'=@class">
<!-- <xsl:apply-templates select="node() | @*"/> -->
</xsl:when>
<xsl:when test="'sites'=@class">
<!-- <xsl:apply-templates select="node() | @*"/> -->
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>