source: trunk/bibnemomaf04_xml.xsl @ 7

Last change on this file since 7 was 2, checked in by smasson, 17 years ago

initial import

File size: 6.6 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2
3<!--
4module :
5sortir un formulaire en html avec les références bibliographiques  + questions générales par personne
6
7source :
8/usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibnemomaf04_xml.xsl sur aedon.locean-ipsl.upmc.fr
9
10update :
11++ parametrer le nom du fichier "base utilisateur" usernemo.xml
12fplod 2007-05-18T14:59:29Z aedon.locean-ipsl.upmc.fr (Darwin)
13modif gestion id
14fplod 2007-05-16T15:28:56Z aedon.locean-ipsl.upmc.fr (Darwin)
15correction pour homonymes partiels
16fplod 2007-05-15T15:07:37Z aedon.locean-ipsl.upmc.fr (Darwin)
17modification to see usernemo/userid="template" information if author_id
18doesn't exit in users datafile
19fplod 2007-04-16T08:10:06Z aedon.locean-ipsl.upmc.fr (Darwin)
20creation
21-->
22
23<xsl:stylesheet
24 id="id" version="1.0"
25 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
26
27<xsl:output
28 method="xml"
29 indent="yes"
30 encoding="ISO-8859-1"
31 omit-xml-declaration="yes"
32 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
33 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
34
35<xsl:include href="firstname_id.xsl"/>
36<xsl:include href="surname_id.xsl"/>
37<xsl:include href="table_authors.xsl"/>
38<xsl:include href="form_db.xsl"/>
39
40<xsl:variable name="list_author_ids" select="///author[not( self::node() = following::author )]"/>
41
42<xsl:template match="bibliography">
43
44<article lang="en">
45<title>NEMO Survey - Known users</title>
46<articleinfo>
47<authorgroup>
48<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
49<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
50<!--++-->
51</authorgroup>
52<keywordset>
53<keyword>NEMO</keyword>
54</keywordset>
55<!-- ++ date -->
56</articleinfo>
57<highlights id="top">
58 <xsl:element name="para">
59These pages intent to provide an form for every know user of NEMO with bibliography and information.
60 </xsl:element>
61 <xsl:element name="para">
62As you can imagine, this survey is not a new way to spy NEMO users and their work! The goal of this survey is simply collect and keep up-to-date information related to the use of NEMO: mainly the number of users and list of publications involving NEMO. These information and their temporal evolution are keys arguments when negotiating man-power or money to support our work. We tried to minimize as much as possible the time needed to fill this survey. Please, take a few minutes to fill it, this will greatly benefit to NEMO!
63 </xsl:element>
64</highlights>
65<xsl:element name="para">
66   The mail sent by filling these forms will be used to update
67<ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink>
68and <ulink url="../../one/usernemo.html">Nemo Users</ulink>.
69</xsl:element>
70
71<para>
72Last update of the bibliography databank : <xsl:value-of select="bibliographyinfo/date"/>
73</para>
74<para>
75Last update of the usernemo databank : <xsl:value-of select="document('usernemo.xml')/usersnemo/date"/>
76</para>
77
78<xsl:call-template name="table_authors">
79 <xsl:with-param name="linktype" select="'external'"/>
80</xsl:call-template>
81
82<sect1 id="intro">
83<title>Intro</title>
84<para>
85This document provide bibliography and NEMO user's information sorted by author's id.
86</para>
87</sect1>
88
89<!-- loop on author_ids -->
90<xsl:for-each select="$list_author_ids">
91 <xsl:sort order="ascending" data-type="text" select="."/>
92 <xsl:variable name="author_id2">
93<xsl:call-template name="surname_id">
94 <xsl:with-param name="surname" select="personname/surname"/>
95</xsl:call-template>
96<xsl:text>_</xsl:text>
97<xsl:call-template name="firstname_id">
98 <xsl:with-param name="firstname" select="personname/firstname"/>
99</xsl:call-template>
100</xsl:variable>
101<!--
102<xsl:message terminate="no">
103 noeud courant <xsl:value-of select="name(.)"/>
104 author <xsl:value-of select="."/>
105 author_id2 <xsl:value-of select="$author_id2"/>
106</xsl:message>
107-->
108 <xsl:call-template name="one_author_id">
109  <xsl:with-param name="author_id" select="$author_id2"/>
110  <xsl:with-param name="author_name" select="."/>
111 </xsl:call-template>
112</xsl:for-each>
113
114</article>
115</xsl:template>
116
117<xsl:template match="bibliographyinfo/date"/>
118<xsl:template match="bibliography/title"/>
119
120<xsl:template name="one_author_id">
121 <xsl:param name="author_id"/>
122 <xsl:param name="author_name"/>
123 <!--
124 <xsl:message terminate="no">
125  call template avec <xsl:value-of select="$author_id"/>
126  et <xsl:value-of select="$author_name"/>
127  noeud courant <xsl:value-of select="name(.)"/>
128 </xsl:message>
129 -->
130 <!--
131 <xsl:message terminate="no">
132  author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::surname=$author_id])"/>
133  2 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::author=$author_name])"/>
134 </xsl:message>
135  -->
136 <xsl:element name="sect1">
137  <xsl:attribute name="id">
138   <xsl:value-of select="$author_id"/>
139  </xsl:attribute>
140  <xsl:element name="title">
141   <xsl:value-of select="$author_name"/>
142  </xsl:element>
143  <xsl:element name="para">
144As you can imagine, this survey is not a new way to spy NEMO users and their work! The goal of this survey is simply collect and keep up-to-date information related to the use of NEMO: mainly the number of users and list of publications involving NEMO. These information and their temporal evolution are keys arguments when negotiating man-power or money to support our work. We tried to minimize as much as possible the time needed to fill this survey. Please, take a few minutes to fill it, this will greatly benefit to NEMO!
145  </xsl:element>
146  <xsl:element name="para">
147   The mail sent by filling this form will be used to update
148<ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink>
149and <ulink url="../../one/usernemo.html">Nemo Users</ulink>.
150  </xsl:element>
151
152  <xsl:choose>
153   <xsl:when test="document('usernemo.xml')/usersnemo/usernemo[descendant::userid=$author_id]/userid = $author_id">
154    <xsl:call-template name="form_db">
155     <xsl:with-param name="author_id" select="$author_id"/>
156     <xsl:with-param name="usernemo" select="document('usernemo.xml')/usersnemo/usernemo[descendant::userid=$author_id]"/>
157     <xsl:with-param name="visu_modif" select="'modif'"/>
158     <xsl:with-param name="bibmode" select="'yes'"/>
159    </xsl:call-template>
160   </xsl:when>
161   <xsl:otherwise>
162    <xsl:call-template name="form_db">
163     <xsl:with-param name="author_id" select="$author_id"/>
164     <xsl:with-param name="usernemo" select="document('usernemo.xml')/usersnemo/usernemo[descendant::userid='template']"/>
165     <xsl:with-param name="visu_modif" select="'modif'"/>
166     <xsl:with-param name="bibmode" select="'yes'"/>
167    </xsl:call-template>
168   </xsl:otherwise>
169  </xsl:choose>
170 </xsl:element>
171</xsl:template>
172
173</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.