source: trunk/template_db.xsl @ 54

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

improvements of .xsl files headers

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
4<!--
5module :
6création du prototype de formulaire utilisateur
7
8update :
9$Id$
10creation
11fplod 2007-04-26T09:31:32Z aedon.locean-ipsl.upmc.fr (Darwin)
12-->
13
14<xsl:output
15 method="xml"
16 indent="yes"
17 encoding="ISO-8859-1"
18 omit-xml-declaration="no"
19 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
20 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
21
22<xsl:include href="form_db.xsl"/>
23
24<xsl:template match="users">
25
26 <xsl:apply-templates select="user[child::userid='template']"/>
27</xsl:template>
28
29<xsl:template match="user[child::userid='template']">
30<article id="template_form" lang="en">
31 <title>Nemo Survey - Template</title>
32<articleinfo>
33<authorgroup>
34<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
35<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
36<!--++-->
37</authorgroup>
38<keywordset>
39<keyword>NEMO</keyword>
40</keywordset>
41<!-- ++ date -->
42</articleinfo>
43
44 <xsl:comment> 
45  template form from template userid in user.xml.
46Last update of the user databank : <xsl:value-of select="ancestor::users/child::date"/>
47 </xsl:comment>
48 <xsl:text>&#xA;</xsl:text>
49 <xsl:element name="sect1">
50  <xsl:attribute name="id">intro</xsl:attribute>
51  <title>Context</title>
52  <xsl:element name="para">
53   The mail sent by filling this form will be used to update
54<ulink url="main.php">Nemo-Publications-Papers</ulink>
55and <ulink url="user.html">Nemo Users</ulink>.
56  </xsl:element>
57 </xsl:element>
58 <xsl:text>&#xA;</xsl:text>
59 <xsl:element name="sect1">
60  <xsl:attribute name="id"><xsl:value-of select="userid"/></xsl:attribute>
61  <xsl:text>&#xA;</xsl:text>
62  <xsl:choose>
63   <xsl:when test="userid != 'template'">
64    <xsl:element name="title">
65     <xsl:value-of select="personname/firstname"/> <xsl:text> </xsl:text> <xsl:value-of select="personname/surname"/>
66    </xsl:element>
67   </xsl:when>
68   <xsl:otherwise>
69    <xsl:element name="title">Template</xsl:element>
70   </xsl:otherwise>
71  </xsl:choose>
72  <xsl:text>&#xA;</xsl:text>
73  <xsl:element name="para">
74   <xsl:value-of select="email"/>
75  </xsl:element>
76  <xsl:text>&#xA;</xsl:text>
77  <xsl:call-template name="form_db">
78   <xsl:with-param name="author_id" select="userid"/>
79   <xsl:with-param name="user" select="."/>
80   <xsl:with-param name="visu_modif" select="'modif'"/>
81   <xsl:with-param name="bibmode" select="'no'"/>
82  </xsl:call-template>
83 <xsl:text>&#xA;</xsl:text>
84 </xsl:element>
85</article>
86</xsl:template>
87
88</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.