source: trunk/template_db.xsl @ 58

Last change on this file since 58 was 58, checked in by pinsard, 16 years ago

introduce language dependency on each update message (bibilo, user, html files)

  • Property svn:keywords set to Id
File size: 3.2 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:d="http://docbook.org/ns/docbook"
6xmlns:xl="http://www.w3.org/1999/xlink"
7xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
8
9<!--
10module :
11création du prototype de formulaire utilisateur
12
13update :
14$Id$
15fplod 2008-04-30T13:30:47Z aedon.locean-ipsl.upmc.fr (Darwin)
16language inherited  from biblio.xml
17fplod 2008-04-29T10:28:37Z aedon.locean-ipsl.upmc.fr (Darwin)
18chgt for dbk5
19fplod 2007-04-26T09:31:32Z aedon.locean-ipsl.upmc.fr (Darwin)
20creation
21-->
22
23<xsl:output
24 method="xml"
25 indent="yes"
26 encoding="ISO-8859-1"
27 omit-xml-declaration="no"/>
28
29<xsl:include href="message_lang.xsl"/>
30<xsl:include href="form_db.xsl"/>
31
32<xsl:template match="users">
33
34 <xsl:apply-templates select="user[child::userid='template']"/>
35</xsl:template>
36
37<xsl:template match="user[child::userid='template']">
38<xsl:element name="article">
39<xsl:attribute name="version">5.0</xsl:attribute>
40<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute>
41<xsl:attribute name="xml:lang"><xsl:value-of select="document('biblio.xml')/d:bibliography/@xml:lang"/></xsl:attribute>
42<xsl:attribute name="xml:id">template_form</xsl:attribute>
43
44 <title>Nemo Survey - Template</title>
45<info>
46<authorgroup>
47<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
48<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
49<!--++-->
50</authorgroup>
51<keywordset>
52<keyword>NEMO</keyword>
53</keywordset>
54<!-- ++ date -->
55</info>
56 <xsl:text>&#xA;</xsl:text>
57
58 <xsl:comment> 
59  template form from template userid in user.xml.
60<xsl:call-template name="para_lastupdate_user">
61 <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/>
62
63 <xsl:with-param name="date" select="ancestor::users/child::date"/>
64</xsl:call-template>
65 </xsl:comment>
66
67 <xsl:text>&#xA;</xsl:text>
68 <xsl:element name="sect1">
69  <xsl:attribute name="xml:id">intro</xsl:attribute>
70  <title>Context</title>
71  <xsl:element name="para">
72   The mail sent by filling this form will be used to update
73<link xl:href="main.php">Nemo-Publications-Papers</link>
74and <link xl:href="user.html">Nemo Users</link>.
75  </xsl:element>
76 </xsl:element>
77 <xsl:text>&#xA;</xsl:text>
78 <xsl:element name="sect1">
79  <xsl:attribute name="xml:id"><xsl:value-of select="userid"/></xsl:attribute>
80  <xsl:text>&#xA;</xsl:text>
81  <xsl:choose>
82   <xsl:when test="userid != 'template'">
83    <xsl:element name="title">
84     <xsl:value-of select="personname/firstname"/> <xsl:text> </xsl:text> <xsl:value-of select="personname/surname"/>
85    </xsl:element>
86   </xsl:when>
87   <xsl:otherwise>
88    <xsl:element name="title">Template</xsl:element>
89   </xsl:otherwise>
90  </xsl:choose>
91  <xsl:text>&#xA;</xsl:text>
92  <xsl:element name="para">
93   <xsl:value-of select="email"/>
94  </xsl:element>
95  <xsl:text>&#xA;</xsl:text>
96  <xsl:call-template name="form_db">
97   <xsl:with-param name="author_id" select="userid"/>
98   <xsl:with-param name="user" select="."/>
99   <xsl:with-param name="visu_modif" select="'modif'"/>
100   <xsl:with-param name="bibmode" select="'no'"/>
101  </xsl:call-template>
102 <xsl:text>&#xA;</xsl:text>
103 </xsl:element>
104</xsl:element>
105</xsl:template>
106
107</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.