source: trunk/compilers_db.xsl @ 37

Last change on this file since 37 was 33, checked in by pinsard, 17 years ago

add Id in many headers; replace bibrefnemo.xml by biblio.xml

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2
3<!--
4module :
5creation des élements compilers de formulaire
6
7update :
8$Id$
9fplod 2007-05-18T10:25:06Z aedon.locean-ipsl.upmc.fr (Darwin)
10correction pour cause de dysfonctionnement sous firefox (mais ok sous safari) :
11Le 1er choix est modifi<E9> si on clique sur un des choix suivant
12fplod 2007-04-26T10:13:37Z aedon.locean-ipsl.upmc.fr (Darwin)
13creation
14-->
15
16<xsl:stylesheet
17 id="id" version="1.0"
18 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
19
20<xsl:template name="compilers">
21 <xsl:param name="user"/>
22 <xsl:param name="visu_modif"/>
23
24  <xsl:text>&#xA;</xsl:text>
25  <xsl:element name="fieldset">
26   <xsl:attribute name="id">compilers</xsl:attribute>
27   <xsl:text>&#xA;</xsl:text>
28   <xsl:text>&#xA;</xsl:text>
29   <xsl:element name="legend">
30    Used compilers
31   </xsl:element>
32   <xsl:text>&#xA;</xsl:text>
33   <xsl:text>&#xA;</xsl:text>
34   <!-- ne plait pas à firefox ++
35   <xsl:element name="label">
36   -->
37    <xsl:for-each select="$user/compilers/compiler">
38     <xsl:sort order="ascending" data-type="text" select="@code"/>
39     <xsl:text>&#xA;</xsl:text>
40     <xsl:comment><xsl:value-of select="./value"/></xsl:comment>
41     <xsl:choose>
42      <xsl:when test="@code != 'zzz_other'">
43      <xsl:text>&#xA;</xsl:text>
44       <xsl:element name="input">
45        <xsl:attribute name="name">
46         <xsl:value-of select="name()"/><xsl:text>_</xsl:text><xsl:value-of select="@code"/>
47        </xsl:attribute>
48        <xsl:attribute name="type">checkbox</xsl:attribute>
49        <xsl:attribute name="value"><xsl:value-of select="./name"/></xsl:attribute>
50        <xsl:if test="$visu_modif= 'visu'">
51         <xsl:attribute name="readonly">1</xsl:attribute>
52        </xsl:if>
53        <xsl:if test="./value = 'yes'">
54         <xsl:attribute name="checked">1</xsl:attribute>
55        </xsl:if>
56        <xsl:value-of select="./name"/>
57       </xsl:element>
58      </xsl:when>
59      <xsl:when  test="@code = 'zzz_other'">
60       <xsl:text>&#xA;</xsl:text>
61       <xsl:element name="label">
62        Other :
63        <xsl:text>&#xA;</xsl:text>
64        <xsl:element name="input">
65         <xsl:attribute name="name">
66          <xsl:value-of select="name()"/><xsl:text>_</xsl:text><xsl:value-of select="@code"/>
67         </xsl:attribute>
68         <xsl:attribute name="type">text</xsl:attribute>
69         <xsl:attribute name="value"><xsl:value-of select="./value"/></xsl:attribute>
70        </xsl:element>
71       </xsl:element>
72      </xsl:when>
73     </xsl:choose>
74    </xsl:for-each>
75   <!-- ne plait pas à firefox ++
76   </xsl:element>
77   -->
78   <xsl:text>&#xA;</xsl:text>
79  </xsl:element>
80  <xsl:text>&#xA;</xsl:text>
81</xsl:template>
82</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.