1
<?xml version="1.0" encoding="UTF-8"?>
3
<xsl:stylesheet version="1.0"
4
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
9
omit-xml-declaration="yes"
11
cdata-section-elements="namelist"
14
<xsl:template match="/">
15
<xsl:for-each select="GCompris/Board">
16
<xsl:if test="@type != 'menu'">
17
<xsl:if test="@difficulty != 0">
19
<id_article><xsl:value-of select="$article_id"/></id_article>
20
<id_rubrique><xsl:value-of select="$rubrique_id"/></id_rubrique>
21
<date><xsl:value-of select="$date"/></date>
22
<statut>publie</statut>
23
<id_secteur><xsl:value-of select="$section_id"/></id_secteur>
24
<maj>20041105212810</maj>
26
<date_redac><xsl:value-of select="$date"/></date_redac>
28
<referers>0</referers>
29
<popularite>0</popularite>
30
<accepter_forum>non</accepter_forum>
31
<auteur_modif>1</auteur_modif>
32
<date_modif><xsl:value-of select="$date"/></date_modif>
33
<lang><xsl:value-of select="$language"/></lang>
34
<langue_choisie>oui</langue_choisie>
35
<id_trad><xsl:value-of select="$traduction_id"/></id_trad>
36
<nom_site>__REMOVEME__</nom_site>
37
<url_site>__REMOVEME__</url_site>
38
<extra>__REMOVEME__</extra>
40
<id_version>0</id_version>
41
<lien_auteur>1</lien_auteur>
45
<xsl:value-of select="@author"/>
46
(<xsl:value-of select="@name"/>.xml)
50
<xsl:variable name="tmptext" select="title[@xml:lang=$language]"/>
51
<xsl:if test="not($tmptext)">
52
<xsl:value-of select="title"/>
54
<xsl:value-of select="$tmptext"/>
58
<xsl:variable name="tmptext" select="prerequisite[@xml:lang=$language]"/>
59
<xsl:if test="not($tmptext)">
60
<xsl:value-of select="prerequisite"/>
62
<xsl:value-of select="$tmptext"/>
66
<xsl:variable name="tmptext" select="description[@xml:lang=$language]"/>
67
<xsl:if test="not($tmptext)">
68
<xsl:value-of select="description"/>
70
<xsl:value-of select="$tmptext"/>
74
<xsl:variable name="tmptext" select="goal[@xml:lang=$language]"/>
75
<xsl:if test="not($tmptext)">
76
<xsl:value-of select="goal"/>
78
<xsl:value-of select="$tmptext"/>
84
<IMG border="0" alt="" align="left">
85
<xsl:attribute name="src">
86
<xsl:value-of select="concat('screenshots/',@name)"/>.jpg</xsl:attribute>
89
<DIV class="flottante">
90
<IMG border="0" alt="" align="right">
91
<xsl:attribute name="src"><xsl:value-of select="@icon"/></xsl:attribute>
94
<xsl:if test="@difficulty">
95
<IMG border="0" alt="" align="right">
96
<xsl:attribute name="src">
97
<xsl:value-of select="concat('boardicons/difficulty_star',@difficulty,'.png')"/>
102
<xsl:if test="(@type != 'chess') and (starts-with(@type,'python:')=false)">
103
<IMG border="0" alt="" align="right" src="boardicons/win.png">
110
<DIV class="oneboardtext">
111
<xsl:variable name="tmptext5" select="manual[@xml:lang=$language]"/>
112
<xsl:if test="not($tmptext5)">
113
<xsl:value-of select="manual"/>
115
<xsl:value-of select="$tmptext5"/>