source: trunk/template_db.xsl @ 31

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

remove nemo in elements names and filenames

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