source: trunk/template_db.xsl @ 65

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

several bug fixes, improvement for conferences (but not complety ok), introducing test in makefile

  • 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="form_db.xsl"/>
30
31<xsl:template match="users">
32
33 <xsl:apply-templates select="user[child::userid='template']"/>
34</xsl:template>
35
36<xsl:template match="user[child::userid='template']">
37<xsl:element name="article">
38<xsl:attribute name="version">5.0</xsl:attribute>
39<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute>
40<xsl:attribute name="xml:lang"><xsl:value-of select="/d:bibliography/@xml:lang"/></xsl:attribute>
41<xsl:attribute name="xml:id">template_form</xsl:attribute>
42
43 <title>Nemo Survey - Template</title>
44<info>
45<authorgroup>
46<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
47<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
48<!--++-->
49</authorgroup>
50<keywordset>
51<keyword>NEMO</keyword>
52</keywordset>
53<!-- ++ date -->
54</info>
55 <xsl:text>&#xA;</xsl:text>
56
57 <xsl:comment> 
58  template form from template userid in user.xml.
59<xsl:call-template name="para_lastupdate_user">
60 <xsl:with-param name="language" select="document('biblio.xml')/d:bibliography/@xml:lang"/>
61
62 <xsl:with-param name="date" select="ancestor::users/child::date"/>
63</xsl:call-template>
64 </xsl:comment>
65
66 <xsl:text>&#xA;</xsl:text>
67 <xsl:element name="sect1">
68  <xsl:attribute name="xml:id">intro</xsl:attribute>
69  <title>Context</title>
70  <xsl:element name="para">
71   The mail sent by filling this form will be used to update
72<link xl:href="main.php">Nemo-Publications-Papers</link>
73and <link xl:href="user.html">Nemo Users</link>.
74  </xsl:element>
75 </xsl:element>
76 <xsl:text>&#xA;</xsl:text>
77 <xsl:element name="sect1">
78  <xsl:attribute name="xml:id"><xsl:value-of select="userid"/></xsl:attribute>
79  <xsl:text>&#xA;</xsl:text>
80  <xsl:choose>
81   <xsl:when test="userid != 'template'">
82    <xsl:element name="title">
83     <xsl:value-of select="personname/firstname"/> <xsl:text> </xsl:text> <xsl:value-of select="personname/surname"/>
84    </xsl:element>
85   </xsl:when>
86   <xsl:otherwise>
87    <xsl:element name="title">Template</xsl:element>
88   </xsl:otherwise>
89  </xsl:choose>
90  <xsl:text>&#xA;</xsl:text>
91  <xsl:element name="para">
92   <xsl:value-of select="email"/>
93  </xsl:element>
94  <xsl:text>&#xA;</xsl:text>
95  <xsl:call-template name="form_db">
96   <xsl:with-param name="author_id" select="userid"/>
97   <xsl:with-param name="user" select="."/>
98   <xsl:with-param name="visu_modif" select="'modif'"/>
99   <xsl:with-param name="bibmode" select="'no'"/>
100  </xsl:call-template>
101 <xsl:text>&#xA;</xsl:text>
102 </xsl:element>
103</xsl:element>
104</xsl:template>
105
106</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.