Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/docs/spip_oneboard.xsl
blob: 7b0fdfd19e8d53292b7307aae74204a14eca6d2c (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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?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="/">
    <xsl:for-each select="GCompris/Board">
      <xsl:if test="@type != 'menu'">
        <xsl:if test="@difficulty != 0">
          <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>
            <url_propre><xsl:value-of select="$langstrip"/>-<xsl:value-of select="@name"/></url_propre>
            <extra>__REMOVEME__</extra>
            <idx>1</idx>
            <id_version>0</id_version>
            <lien_auteur>1</lien_auteur>
            <ps>__REMOVEME__</ps>

            <surtitre>__REMOVEME__
              <xsl:value-of select="@author"/>
              (<xsl:value-of select="@name"/>.xml)
            </surtitre>

            <titre>__REMOVEME__
              <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>

            <descriptif>__REMOVEME__
              <xsl:variable name="tmptext" select="prerequisite[@xml:lang=$language]"/>
              <xsl:if test="not($tmptext)">
                <xsl:value-of select="prerequisite"/>
              </xsl:if>
              <xsl:value-of select="$tmptext"/>
            </descriptif>

            <soustitre>__REMOVEME__
              <xsl:variable name="tmptext" select="description[@xml:lang=$language]"/>
              <xsl:if test="not($tmptext)">
                <xsl:value-of select="description"/>
              </xsl:if>
              <xsl:value-of select="$tmptext"/>
            </soustitre>

            <chapo>__REMOVEME__
              <xsl:variable name="tmptext" select="goal[@xml:lang=$language]"/>
              <xsl:if test="not($tmptext)">
                <xsl:value-of select="goal"/>
              </xsl:if>
              <xsl:value-of select="$tmptext"/>
            </chapo>

            <texte>
              <HTML>
                <DIV>
                  <IMG border="0" alt="">
		    <xsl:attribute name="align"><xsl:value-of select="$left"/></xsl:attribute>
                    <xsl:attribute name="src">
                      <xsl:value-of select="concat('screenshots/',@name)"/>.jpg</xsl:attribute>
                    </IMG>

                    <DIV class="flottante">
                      <IMG border="0" alt="">
			<xsl:attribute name="align"><xsl:value-of select="$right"/></xsl:attribute>
                        <xsl:attribute name="src"><xsl:value-of select="@icon"/></xsl:attribute>
                      </IMG>

                      <xsl:if test="@difficulty">
                        <IMG border="0" alt="">
			  <xsl:attribute name="align"><xsl:value-of select="$right"/></xsl:attribute>
                          <xsl:attribute name="src">
                            <xsl:value-of select="concat('boardicons/difficulty_star',@difficulty,'.png')"/>
                          </xsl:attribute>
                        </IMG>
                      </xsl:if>

                      <xsl:if test="(starts-with(@type,'python:')=false)">
                        <IMG border="0" alt="" src="boardicons/win.png">
			  <xsl:attribute name="align"><xsl:value-of select="$right"/></xsl:attribute>
                        </IMG>
                      </xsl:if>

                    </DIV>
                  </DIV>

                  <DIV class="oneboardtext">
                    <xsl:variable name="tmptext5" select="manual[@xml:lang=$language]"/>
                    <xsl:if test="not($tmptext5)">
                      <xsl:value-of select="manual"/>
                    </xsl:if>
                    <xsl:value-of select="$tmptext5"/>
                    __NBSP__
                  </DIV>

                </HTML>


              </texte>
            </article>
          </xsl:if>
        </xsl:if>
      </xsl:for-each>
    </xsl:template>

  </xsl:stylesheet>