comparison xslt/menu.xslt @ 694:2ced25001893

Regenerated.
author Vladimir Homutov <vl@nginx.com>
date Mon, 01 Oct 2012 13:50:19 +0000
parents ba913f7cf7c1
children b133b1f44765
comparison
equal deleted inserted replaced
693:095d1972dad9 694:2ced25001893
20 </xsl:otherwise> 20 </xsl:otherwise>
21 </xsl:choose> 21 </xsl:choose>
22 </xsl:when> 22 </xsl:when>
23 23
24 <xsl:otherwise> 24 <xsl:otherwise>
25 <xsl:choose>
25 26
26 <a> 27 <xsl:when test="@switchlang != ''">
27
28 <xsl:attribute name="href">
29 <xsl:choose> 28 <xsl:choose>
30 29
31 <xsl:when test="starts-with(@href, $DIRNAME)"> 30 <xsl:when test="contains($TRANS, @switchlang)">
32 <xsl:choose>
33 31
34 <xsl:when test="substring-after(@href, $DIRNAME) = ''"> 32 <a>
35 ./</xsl:when>
36 33
37 <xsl:otherwise> 34 <xsl:attribute name="href">
35 <xsl:choose>
38 36
39 <xsl:value-of select=" substring-after(@href, $DIRNAME)"/> 37 <xsl:when test="$ROOT != '' ">
40 </xsl:otherwise> 38
41 </xsl:choose> 39 <xsl:value-of select=" concat($ROOT, '/', @switchlang, '/', $NOLANGORIGIN)"/>
40 </xsl:when>
41
42 <xsl:otherwise>
43
44 <xsl:value-of select=" concat(@switchlang, '/', $NOLANGORIGIN)"/>
45 </xsl:otherwise>
46 </xsl:choose>
47 </xsl:attribute>
48
49 <xsl:value-of select=" normalize-space(text())"/>
50
51 </a>
42 </xsl:when> 52 </xsl:when>
43 53
44 <xsl:otherwise> 54 <xsl:otherwise>
45 55
46 <xsl:value-of select=" concat($ROOT, @href)"/> 56 <a class="notrans">
57 <xsl:value-of select=" normalize-space(text())"/>
58 </a>
47 </xsl:otherwise> 59 </xsl:otherwise>
48 </xsl:choose> 60 </xsl:choose>
49 </xsl:attribute> 61 </xsl:when>
50 62
51 <xsl:value-of select=" normalize-space(text())"/> 63 <xsl:otherwise>
52 64
53 </a> 65 <a>
54 66
55 <xsl:if test="@lang"> 67 <xsl:attribute name="href">
56 <xsl:text> [</xsl:text> 68 <xsl:choose>
57 <xsl:value-of select="@lang"/> 69
58 <xsl:text>]</xsl:text> 70 <xsl:when test="starts-with(@href, $DIRNAME)">
59 </xsl:if> 71 <xsl:choose>
72
73 <xsl:when test="substring-after(@href, $DIRNAME) = ''">
74 ./</xsl:when>
75
76 <xsl:otherwise>
77
78 <xsl:value-of select=" substring-after(@href, $DIRNAME)"/>
79 </xsl:otherwise>
80 </xsl:choose>
81 </xsl:when>
82
83 <xsl:otherwise>
84
85 <xsl:value-of select=" concat($ROOT, @href)"/>
86 </xsl:otherwise>
87 </xsl:choose>
88 </xsl:attribute>
89
90 <xsl:value-of select=" normalize-space(text())"/>
91
92 </a>
93
94 <xsl:if test="@lang">
95 <xsl:text> [</xsl:text>
96 <xsl:value-of select="@lang"/>
97 <xsl:text>]</xsl:text>
98 </xsl:if>
99 </xsl:otherwise>
100 </xsl:choose>
60 101
61 <br/> 102 <br/>
62 </xsl:otherwise> 103 </xsl:otherwise>
63 </xsl:choose> 104 </xsl:choose>
64 </xsl:template> 105 </xsl:template>