-
Notifications
You must be signed in to change notification settings - Fork 7
/
silly.xsl
40 lines (40 loc) · 1.57 KB
/
silly.xsl
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- -->
<!-- silly.xsl -->
<!-- Strip Individual Layout for Lilypond -->
<!-- v0.2.0 -->
<!-- programmed by Klaus Rettinghaus -->
<!-- -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mei="http://www.music-encoding.org/ns/mei">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="node()|@*" name="identity">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<!-- strip tuplet styling -->
<xsl:template match="@bracket.place"/>
<xsl:template match="@num.place"/>
<!-- strip direction of ties and slurs -->
<xsl:template match="@curvedir"/>
<!-- strip stem styling -->
<xsl:template match="@stem.dir"/>
<xsl:template match="@stem.len"/>
<xsl:template match="@stem.x"/>
<xsl:template match="@stem.y"/>
<!-- strip positioning of rests -->
<xsl:template match="@ploc"/>
<xsl:template match="@oloc"/>
<!-- strip default distances from the staff -->
<xsl:template match="@dynam.dist"/>
<xsl:template match="@harm.dist"/>
<xsl:template match="@text.dist"/>
<!-- strip default spacing -->
<xsl:template match="@spacing"/>
<xsl:template match="@spacing.staff"/>
<xsl:template match="@spacing.system"/>
<!-- strip breaks -->
<xsl:template match="mei:sb"/>
<xsl:template match="mei:pb"/>
</xsl:stylesheet>