blob: bf30854c53b1248ab7daec08e53fee654225ebb0 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="xml"
version="version"
omit-xml-declaration="yes"
standalone="no"
cdata-section-elements="namelist"
indent="yes"/>
<xsl:template match="/">
<article>
<id_article><xsl:value-of select="$article_id"/></id_article>
<id_rubrique><xsl:value-of select="$rubrique_id"/></id_rubrique>
<date><xsl:value-of select="$date"/></date>
<statut>publie</statut>
<id_secteur><xsl:value-of select="$section_id"/></id_secteur>
<maj>20041105212810</maj>
<export>oui</export>
<date_redac><xsl:value-of select="$date"/></date_redac>
<visites>0</visites>
<referers>0</referers>
<popularite>0</popularite>
<accepter_forum>non</accepter_forum>
<auteur_modif>1</auteur_modif>
<date_modif><xsl:value-of select="$date"/></date_modif>
<lang><xsl:value-of select="$language"/></lang>
<langue_choisie>oui</langue_choisie>
<id_trad><xsl:value-of select="$traduction_id"/></id_trad>
<nom_site>__REMOVEME__</nom_site>
<url_site>__REMOVEME__</url_site>
<extra>__REMOVEME__</extra>
<idx>1</idx>
<id_version>0</id_version>
<lien_auteur>1</lien_auteur>
<surtitre>__REMOVEME__</surtitre>
<soustitre>__REMOVEME__</soustitre>
<descriptif>__REMOVEME__</descriptif>
<chapo>__REMOVEME__</chapo>
<url_propre><xsl:value-of select="$langstrip"/>-<xsl:value-of select="$name"/></url_propre>
<ps>__REMOVEME__</ps>
<xsl:for-each select="GComprisBoards/GCompris/Board[@name=$name]">
<titre>
<xsl:variable name="tmptext" select="title[@xml:lang=$language]"/>
<xsl:if test="not($tmptext)">
<xsl:value-of select="title"/>
</xsl:if>
<xsl:value-of select="$tmptext"/>
</titre>
</xsl:for-each>
<texte>
<HTML>
<DIV class="conteneur">
<xsl:for-each select="GComprisBoards/GCompris/Board[@section=$section and @type!='menu']">
<!-- order the result by difficulty -->
<xsl:sort select="@difficulty"
data-type="number"
order="ascending"/>
<P class="flottante">
<A>
<xsl:attribute name="href">
<xsl:value-of select="concat($language,':',@name,'.xml')"/>
</xsl:attribute>
<IMG border="0" align="top" alt="">
<xsl:attribute name="src">
<xsl:value-of select="concat('screenshots/',@name)"/>_small.jpg
</xsl:attribute>
<xsl:attribute name="title">
<xsl:variable name="tmptext" select="title[@xml:lang=$language]"/>
<xsl:if test="not($tmptext)">
<xsl:value-of select="title"/>
</xsl:if>
<xsl:value-of select="$tmptext"/>
</xsl:attribute>
</IMG>
</A>
</P>
</xsl:for-each>
<DIV class="spacer">__REMOVEME__</DIV>
</DIV>
</HTML>
</texte>
</article>
</xsl:template>
</xsl:stylesheet>
|