Debian Codegraph @

apertium-nno-1.4.0/rem-compounds.xsl

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2 <!--
3 Copyright (C) 2005-2010 Universitat d'Alacant / Universidad de Alicante
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 02111-1307, USA.
19 -->
20 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
21 <xsl:output method="xml" encoding="UTF-8"/>
22 <xsl:param name="r2l"/>
23
24 <xsl:template match="s">
25 <xsl:copy-of select="."/>
26 </xsl:template>
27
28 <xsl:template match="b">
29 <xsl:copy-of select="."/>
30 </xsl:template>
31
32 <xsl:template match="g">
33 <xsl:copy-of select="."/>
34 </xsl:template>
35
36 <xsl:template match="a">
37 <xsl:copy-of select="."/>
38 </xsl:template>
39
40 <xsl:template match="j">
41 <xsl:copy-of select="."/>
42 </xsl:template>
43
44 <xsl:template match="l">
45 <xsl:copy-of select="."/>
46 </xsl:template>
47
48 <xsl:template match="r">
49 <xsl:copy-of select="."/>
50 </xsl:template>
51
52 <xsl:template match="par">
53 <xsl:copy-of select="."/>
54 </xsl:template>
55
56 <xsl:template match="re">
57 <xsl:copy-of select="."/>
58 </xsl:template>
59
60 <xsl:template match="p">
61 <xsl:copy-of select="."/>
62 </xsl:template>
63
64 <xsl:template match="i">
65 <xsl:copy-of select="."/>
66 </xsl:template>
67
68 <xsl:template match="e">
69 <xsl:choose>
70 <xsl:when test="not(.//@n='compound-R') and not(.//@n='compound-only-L')">
71 <xsl:copy-of select="."/>
72 </xsl:when>
73 </xsl:choose>
74 </xsl:template>
75
76 <xsl:template match="dictionary">
77 <dictionary>
78 <xsl:value-of select="string('&#xA;')"/>
79 <xsl:copy-of select="./alphabet"/>
80 <xsl:value-of select="string('&#xA;')"/>
81 <xsl:copy-of select="./sdefs"/>
82 <xsl:value-of select="string('&#xA;')"/>
83 <xsl:if test="not(count(./pardefs/pardef)=0)">
84 <pardefs>
85 <xsl:value-of select="string('&#xA;')"/>
86
87 <xsl:for-each select="./pardefs/pardef">
88 <xsl:value-of select="string('&#xA;')"/>
89
90 <pardef n="{./@n}">
91 <xsl:apply-templates/>
92 </pardef>
93 </xsl:for-each>
94 <xsl:value-of select="string('&#xA;')"/>
95
96 </pardefs>
97 </xsl:if>
98 <xsl:value-of select="string('&#xA;')"/>
99
100 <xsl:for-each select="./section">
101 <section id="{./@id}" type="{./@type}">
102 <xsl:apply-templates/>
103 </section>
104
105 </xsl:for-each>
106 </dictionary>
107 </xsl:template>
108
109
110 </xsl:stylesheet>