~ubuntu-branches/ubuntu/trusty/gcompris/trusty

« back to all changes in this revision

Viewing changes to docs/spip_oneboard.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2006-12-15 23:08:17 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061215230817-exr5ks1hd73s3tlk
Tags: 8.2.2-1
* New upstream bugfix release, fixes among other things the support for
  the version of gnucap shipped in etch.
* Add missing dependency on python-gtk2 (Closes: #396523).
* Removed reference to non-existent sound file from memory.c (upstream
  fix - impacts 8.2 as well).  
* Now suggests gnuchess, gnucap, and tuxpaint.
* Updated extended description for the main package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
 
3
 
<xsl:stylesheet version="1.0"
4
 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
 
 
6
 
  <xsl:output
7
 
    method="xml"
8
 
    version="version"
9
 
    omit-xml-declaration="yes"
10
 
    standalone="no"
11
 
    cdata-section-elements="namelist"
12
 
    indent="yes"/>
13
 
  
14
 
  <xsl:template match="/">
15
 
    <xsl:for-each select="GCompris/Board">
16
 
      <xsl:if test="@type != 'menu'">
17
 
        <xsl:if test="@difficulty != 0">
18
 
          <article>
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>
25
 
            <export>oui</export>
26
 
            <date_redac><xsl:value-of select="$date"/></date_redac>
27
 
            <visites>0</visites>
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>
39
 
            <idx>oui</idx>
40
 
            <id_version>0</id_version>
41
 
            <lien_auteur>1</lien_auteur>
42
 
            <ps>__REMOVEME__</ps>
43
 
 
44
 
            <surtitre>
45
 
              <xsl:value-of select="@author"/>
46
 
              (<xsl:value-of select="@name"/>.xml)
47
 
            </surtitre>
48
 
 
49
 
            <titre>
50
 
              <xsl:variable name="tmptext" select="title[@xml:lang=$language]"/>
51
 
              <xsl:if test="not($tmptext)">
52
 
                <xsl:value-of select="title"/>
53
 
              </xsl:if>
54
 
              <xsl:value-of select="$tmptext"/>
55
 
            </titre>
56
 
 
57
 
            <descriptif>
58
 
              <xsl:variable name="tmptext" select="prerequisite[@xml:lang=$language]"/>
59
 
              <xsl:if test="not($tmptext)">
60
 
                <xsl:value-of select="prerequisite"/>
61
 
              </xsl:if>
62
 
              <xsl:value-of select="$tmptext"/>
63
 
            </descriptif>
64
 
 
65
 
            <soustitre>
66
 
              <xsl:variable name="tmptext" select="description[@xml:lang=$language]"/>
67
 
              <xsl:if test="not($tmptext)">
68
 
                <xsl:value-of select="description"/>
69
 
              </xsl:if>
70
 
              <xsl:value-of select="$tmptext"/>
71
 
            </soustitre>
72
 
 
73
 
            <chapo>
74
 
              <xsl:variable name="tmptext" select="goal[@xml:lang=$language]"/>
75
 
              <xsl:if test="not($tmptext)">
76
 
                <xsl:value-of select="goal"/>
77
 
              </xsl:if>
78
 
              <xsl:value-of select="$tmptext"/>
79
 
            </chapo>
80
 
 
81
 
            <texte>
82
 
              <HTML>
83
 
                <DIV>
84
 
                  <IMG border="0" alt="" align="left">
85
 
                    <xsl:attribute name="src">
86
 
                      <xsl:value-of select="concat('screenshots/',@name)"/>.jpg</xsl:attribute>
87
 
                    </IMG>
88
 
                  
89
 
                    <DIV class="flottante">
90
 
                      <IMG border="0" alt="" align="right">
91
 
                        <xsl:attribute name="src"><xsl:value-of select="@icon"/></xsl:attribute>
92
 
                      </IMG>
93
 
 
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')"/>
98
 
                          </xsl:attribute>
99
 
                        </IMG>
100
 
                      </xsl:if>
101
 
 
102
 
                      <xsl:if test="(@type != 'chess') and (starts-with(@type,'python:')=false)">
103
 
                        <IMG border="0" alt=""  align="right" src="boardicons/win.png">
104
 
                        </IMG>
105
 
                      </xsl:if>
106
 
 
107
 
                    </DIV>
108
 
                  </DIV>
109
 
 
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"/>
114
 
                    </xsl:if>                    
115
 
                    <xsl:value-of select="$tmptext5"/>
116
 
                    __NBSP__
117
 
                  </DIV>
118
 
 
119
 
                </HTML>
120
 
                
121
 
 
122
 
              </texte>
123
 
            </article>
124
 
          </xsl:if>
125
 
        </xsl:if>
126
 
      </xsl:for-each>
127
 
    </xsl:template>
128
 
 
129
 
  </xsl:stylesheet>