| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
<xsl:output |
| 10 |
method="html" |
| 11 |
encoding="UTF-8" |
| 12 |
doctype-public="-//W3C//DTD HTML 4.01//EN" |
| 13 |
doctype-system="http://www.w3.org/TR/html4/strict.dtd" |
| 14 |
indent="yes" /> |
| 15 |
|
| 16 |
|
| 17 |
<xsl:template match="teiHeader"><title><xsl:text>Entrées ajoutées/modifiées par Denis au Geriadur Tomaz</xsl:text></title> </xsl:template> |
| 18 |
|
| 19 |
|
| 20 |
<xsl:template match="body"> |
| 21 |
<html><head><link rel="stylesheet" href="tei.css" type="text/css" /></head> |
| 22 |
<body> |
| 23 |
<xsl:for-each select="entry"> |
| 24 |
<entry><xsl:apply-templates select="form | sense"/> </entry><xsl:text>
</xsl:text> |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
</xsl:for-each> |
| 35 |
</body> |
| 36 |
</html> |
| 37 |
</xsl:template> |
| 38 |
|
| 39 |
|
| 40 |
<xsl:template match="form"> |
| 41 |
<form><xsl:apply-templates select="orth"/><xsl:apply-templates select="pos"/><xsl:apply-templates select="gen"/><xsl:apply-templates select="number"/><xsl:apply-templates select="form[@type]"/><xsl:apply-templates select="lbl"/></form> |
| 42 |
</xsl:template> |
| 43 |
|
| 44 |
|
| 45 |
<xsl:template match="sense"> |
| 46 |
<sense><xsl:apply-templates select="cit[@type='translation']"/><xsl:apply-templates select="def"/><xsl:apply-templates select="lbl"/><xsl:apply-templates select="usg"/><xsl:apply-templates select="cit[@type='example']"/></sense> |
| 47 |
</xsl:template> |
| 48 |
|
| 49 |
|
| 50 |
<xsl:template match="orth"> |
| 51 |
<orth><xsl:value-of select="."/></orth> |
| 52 |
</xsl:template> |
| 53 |
|
| 54 |
|
| 55 |
<xsl:template match="pos"> |
| 56 |
<pos><xsl:value-of select="."/></pos> |
| 57 |
</xsl:template> |
| 58 |
|
| 59 |
|
| 60 |
<xsl:template match="gen"> |
| 61 |
<gen><xsl:value-of select="."/> </gen> |
| 62 |
</xsl:template> |
| 63 |
|
| 64 |
|
| 65 |
<xsl:template match="number"> |
| 66 |
<number><xsl:value-of select="."/></number> |
| 67 |
</xsl:template> |
| 68 |
|
| 69 |
|
| 70 |
<xsl:template match="lbl"> |
| 71 |
<lbl><xsl:value-of select="."/></lbl> |
| 72 |
</xsl:template> |
| 73 |
|
| 74 |
|
| 75 |
<xsl:template match="def"> |
| 76 |
<def><xsl:value-of select="."/></def> |
| 77 |
</xsl:template> |
| 78 |
|
| 79 |
|
| 80 |
<xsl:template match="quote"> |
| 81 |
<quote><xsl:apply-templates/></quote> |
| 82 |
</xsl:template> |
| 83 |
|
| 84 |
<xsl:template match="cit[@type='example']"> |
| 85 |
<cit type="example"> <xsl:apply-templates select="quote"/> <xsl:apply-templates select="cit[@type='translation']"/> <xsl:apply-templates select="def"/><xsl:apply-templates select="usg"/> </cit> |
| 86 |
</xsl:template> |
| 87 |
|
| 88 |
<xsl:template match="cit[@type='translation']"> |
| 89 |
<xsl:choose> |
| 90 |
<xsl:when test="@subtype != 0"> |
| 91 |
<cit type="translation" subtype="literal"> |
| 92 |
<xsl:apply-templates select="quote"/> |
| 93 |
</cit> |
| 94 |
</xsl:when> |
| 95 |
<xsl:otherwise> |
| 96 |
<cit type="translation"> |
| 97 |
<xsl:apply-templates select="quote"/> |
| 98 |
<xsl:apply-templates select="lbl"/> |
| 99 |
<xsl:apply-templates select="pos"/> |
| 100 |
<xsl:apply-templates select="gen"/> |
| 101 |
<xsl:apply-templates select="number"/> |
| 102 |
<xsl:apply-templates select="form[@type]"/> |
| 103 |
<xsl:apply-templates select="usg"/> |
| 104 |
</cit> |
| 105 |
</xsl:otherwise> |
| 106 |
</xsl:choose> |
| 107 |
|
| 108 |
</xsl:template> |
| 109 |
|
| 110 |
|
| 111 |
<xsl:template match="usg"> |
| 112 |
<usg><xsl:apply-templates/></usg> |
| 113 |
</xsl:template> |
| 114 |
|
| 115 |
|
| 116 |
<xsl:template match="form[@type]"> |
| 117 |
<xsl:choose> |
| 118 |
<xsl:when test="@type='plur'"> |
| 119 |
<form type="plur"><xsl:apply-templates/></form> |
| 120 |
</xsl:when> |
| 121 |
<xsl:when test="@type='sing'"> |
| 122 |
|
| 123 |
<xsl:choose> |
| 124 |
<xsl:when test="orth='-enn'"> |
| 125 |
<form type="sing"><orth><xsl:value-of select="preceding-sibling::orth"/>enn</orth></form> |
| 126 |
</xsl:when> |
| 127 |
<xsl:otherwise> |
| 128 |
<form type="sing"><xsl:apply-templates/></form> |
| 129 |
</xsl:otherwise> |
| 130 |
</xsl:choose> |
| 131 |
|
| 132 |
|
| 133 |
</xsl:when> |
| 134 |
<xsl:when test="@type='dual'"> |
| 135 |
<form type="dual"><xsl:apply-templates/></form> |
| 136 |
</xsl:when> |
| 137 |
<xsl:when test="@type='pastp'"> |
| 138 |
<form type="pastp"><xsl:apply-templates/></form> |
| 139 |
</xsl:when> |
| 140 |
<xsl:when test="@type='infl'"> |
| 141 |
<xsl:choose> |
| 142 |
<xsl:when test="orth='ioù'"> |
| 143 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ioù</orth></form> |
| 144 |
</xsl:when> |
| 145 |
<xsl:when test="orth='où'"> |
| 146 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>où</orth></form> |
| 147 |
</xsl:when> |
| 148 |
<xsl:when test="orth='ed'"> |
| 149 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ed</orth></form> |
| 150 |
</xsl:when> |
| 151 |
<xsl:when test="orth='ien'"> |
| 152 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ien</orth></form> |
| 153 |
</xsl:when> |
| 154 |
<xsl:when test="orth='ezed'"> |
| 155 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ezed</orth></form> |
| 156 |
</xsl:when> |
| 157 |
<xsl:when test="orth='où/i'"> |
| 158 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>où</orth></form><form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>i</orth></form> |
| 159 |
</xsl:when> |
| 160 |
<xsl:when test="orth='où/ioù'"> |
| 161 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>où</orth></form><form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ioù</orth></form> |
| 162 |
</xsl:when> |
| 163 |
<xsl:when test="orth='ed/ien'"> |
| 164 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ed</orth></form><form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ien</orth></form> |
| 165 |
</xsl:when> |
| 166 |
<xsl:when test="orth='ed/i'"> |
| 167 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ed</orth></form><form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>i</orth></form> |
| 168 |
</xsl:when> |
| 169 |
<xsl:when test="orth='-eien'"> |
| 170 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>eien</orth></form> |
| 171 |
</xsl:when> |
| 172 |
<xsl:when test="orth='ez'"> |
| 173 |
<form type="plur"><orth><xsl:value-of select="preceding-sibling::orth"/>ez</orth></form> |
| 174 |
</xsl:when> |
| 175 |
<xsl:otherwise> |
| 176 |
<form type="infl"><xsl:apply-templates/></form> |
| 177 |
</xsl:otherwise> |
| 178 |
</xsl:choose> |
| 179 |
|
| 180 |
</xsl:when> |
| 181 |
<xsl:otherwise> |
| 182 |
<form type="infl"><xsl:apply-templates/></form> |
| 183 |
</xsl:otherwise> |
| 184 |
|
| 185 |
|
| 186 |
</xsl:choose> |
| 187 |
|
| 188 |
</xsl:template> |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
◊ ● ○ ♦ |
| 196 |
|
| 197 |
</xsl:stylesheet> |