source: trunk/personal_db.xsl

Last change on this file was 323, checked in by pinsard, 11 years ago

fix for XSL documentations

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<xsl:stylesheet
3version="1.0"
4xmlns:html="http://www.w3.org/1999/xhtml"
5xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6
7<!--rst
8
9.. _personal_db.xsl:
10
11===============
12personal_db.xsl
13===============
14
15DESCRIPTION
16===========
17
18creation des élements personal de formulaire
19
20EVOLUTIONS
21==========
22
23$Id$
24
25- fplod 2008-04-29T09:03:24Z aedon.locean-ipsl.upmc.fr (Darwin)
26
27  * chgt for dbk5
28
29- fplod 2007-04-26T10:28:19Z aedon.locean-ipsl.upmc.fr (Darwin)
30
31  * creation
32
33-->
34
35<xsl:template name="personal">
36 <xsl:param name="user"/>
37 <xsl:param name="author_id"/>
38 <xsl:param name="visu_modif"/> <!-- ++ readonly -->
39  <xsl:text>&#xA;</xsl:text>
40  <xsl:element name="html:fieldset">
41   <xsl:attribute name="xml:id">personal_<xsl:value-of select="$author_id"/></xsl:attribute>
42   <xsl:text>&#xA;</xsl:text>
43   <xsl:element name="html:legend">
44    Personal Information
45   </xsl:element>
46   <xsl:text>&#xA;</xsl:text>
47   <xsl:element name="html:label">
48     <xsl:text>Lastname: </xsl:text>
49     <xsl:text>&#xA;</xsl:text>
50     <xsl:element name="html:input">
51      <xsl:attribute name="name">personal_surname</xsl:attribute>
52      <xsl:attribute name="tabindex">1</xsl:attribute>
53      <xsl:attribute name="type">text</xsl:attribute>
54      <xsl:attribute name="value"><xsl:value-of select="$user/personname/surname"/></xsl:attribute>
55    </xsl:element>
56   </xsl:element>
57   <xsl:text>&#xA;</xsl:text>
58   <xsl:element name="html:label">
59    <xsl:text>Firstname: </xsl:text>
60    <xsl:text>&#xA;</xsl:text>
61    <xsl:element name="html:input">
62     <xsl:attribute name="name">personal_firstname</xsl:attribute>
63     <xsl:attribute name="tabindex">2</xsl:attribute>
64     <xsl:attribute name="type">text</xsl:attribute>
65     <xsl:attribute name="value"><xsl:value-of select="$user/personname/firstname"/></xsl:attribute>
66    </xsl:element>
67   </xsl:element>
68   <xsl:text>&#xA;</xsl:text>
69   <xsl:element name="html:label">
70    <xsl:text>Middlename: </xsl:text>
71    <xsl:text>&#xA;</xsl:text>
72    <xsl:element name="html:input">
73     <xsl:attribute name="name">personal_middlename</xsl:attribute>
74     <xsl:attribute name="tabindex">3</xsl:attribute>
75     <xsl:attribute name="type">text</xsl:attribute>
76     <xsl:attribute name="value"></xsl:attribute>  <!--++-->
77    </xsl:element>
78   </xsl:element>
79   <xsl:text>&#xA;</xsl:text>
80   <xsl:element name="html:label">
81    <xsl:text>email: </xsl:text>
82    <xsl:text>&#xA;</xsl:text>
83    <xsl:element name="html:input">
84     <xsl:attribute name="name">personal_email</xsl:attribute>
85     <xsl:attribute name="tabindex">4</xsl:attribute>
86     <xsl:attribute name="type">text</xsl:attribute>
87     <xsl:attribute name="value"></xsl:attribute>
88     <xsl:attribute name="value"><xsl:value-of select="$user/email"/></xsl:attribute>
89    </xsl:element>
90   </xsl:element>
91  </xsl:element>
92</xsl:template>
93
94</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.