| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 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('
')"/> |
| 79 |
<xsl:copy-of select="./alphabet"/> |
| 80 |
<xsl:value-of select="string('
')"/> |
| 81 |
<xsl:copy-of select="./sdefs"/> |
| 82 |
<xsl:value-of select="string('
')"/> |
| 83 |
<xsl:if test="not(count(./pardefs/pardef)=0)"> |
| 84 |
<pardefs> |
| 85 |
<xsl:value-of select="string('
')"/> |
| 86 |
|
| 87 |
<xsl:for-each select="./pardefs/pardef"> |
| 88 |
<xsl:value-of select="string('
')"/> |
| 89 |
|
| 90 |
<pardef n="{./@n}"> |
| 91 |
<xsl:apply-templates/> |
| 92 |
</pardef> |
| 93 |
</xsl:for-each> |
| 94 |
<xsl:value-of select="string('
')"/> |
| 95 |
|
| 96 |
</pardefs> |
| 97 |
</xsl:if> |
| 98 |
<xsl:value-of select="string('
')"/> |
| 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> |