source: trunk/superbibmany02_xml.xsl @ 29

Last change on this file since 29 was 29, checked in by pinsard, 17 years ago

parametrisation of number of chunked outputs. side effect = bibnemomaf03 is replaced by bibnemomaf01 and bibnemomaf04 is replaced by bibnemomaf02

File size: 6.8 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/src/superbib_ws/superbibmany02_xml.xsl sur aedon.locean-ipsl.upmc.fr
9
10update :
11++ parametrer le nom du fichier "base utilisateur" usernemo.xml
12fplod 2007-10-17T08:06:40Z aedon.locean-ipsl.upmc.fr (Darwin)
13improve sort (diacriticals)
14fplod 2007-05-18T14:59:29Z aedon.locean-ipsl.upmc.fr (Darwin)
15modif gestion id
16fplod 2007-05-16T15:28:56Z aedon.locean-ipsl.upmc.fr (Darwin)
17correction pour homonymes partiels
18fplod 2007-05-15T15:07:37Z aedon.locean-ipsl.upmc.fr (Darwin)
19modification to see usernemo/userid="template" information if author_id
20doesn't exit in users datafile
21fplod 2007-04-16T08:10:06Z aedon.locean-ipsl.upmc.fr (Darwin)
22creation
23-->
24
25<xsl:stylesheet
26 id="id" version="1.0"
27 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
28
29<xsl:output
30 method="xml"
31 indent="yes"
32 encoding="ISO-8859-1"
33 omit-xml-declaration="yes"
34 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
35 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
36
37<xsl:include href="firstname_id.xsl"/>
38<xsl:include href="surname_id.xsl"/>
39<xsl:include href="table_authors.xsl"/>
40<xsl:include href="form_db.xsl"/>
41
42<xsl:variable name="list_author_ids" select="///author[not( self::node() = following::author )]"/>
43
44<xsl:template match="bibliography">
45
46<article lang="en">
47<title>NEMO Survey - Known users</title>
48<articleinfo>
49<authorgroup>
50<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
51<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
52<!--++-->
53</authorgroup>
54<keywordset>
55<keyword>NEMO</keyword>
56</keywordset>
57<!-- ++ date -->
58</articleinfo>
59<highlights>
60 <xsl:element name="para">
61These pages intent to provide an form for every know user of NEMO with bibliography and information.
62 </xsl:element>
63 <xsl:element name="para">
64As 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!
65 </xsl:element>
66</highlights>
67<xsl:element name="para">
68   The mail sent by filling these forms will be used to update
69<ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink>
70and <ulink url="../../one/usernemo.html">Nemo Users</ulink>.
71</xsl:element>
72
73<para>
74Last update of the bibliography databank : <xsl:value-of select="bibliographyinfo/date"/>
75</para>
76<para>
77Last update of the usernemo databank : <xsl:value-of select="document('usernemo.xml')/usersnemo/date"/>
78</para>
79
80<xsl:call-template name="table_authors">
81 <xsl:with-param name="linktype" select="'external'"/>
82</xsl:call-template>
83
84<sect1 id="intro">
85<title>Intro</title>
86<para>
87This document provide bibliography and NEMO user's information sorted by author's id.
88</para>
89</sect1>
90
91<!-- loop on author_ids -->
92<xsl:for-each select="$list_author_ids">
93 <xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>
94 <xsl:variable name="author_id2">
95<xsl:call-template name="surname_id">
96 <xsl:with-param name="surname" select="personname/surname"/>
97</xsl:call-template>
98<xsl:text>_</xsl:text>
99<xsl:call-template name="firstname_id">
100 <xsl:with-param name="firstname" select="personname/firstname"/>
101</xsl:call-template>
102</xsl:variable>
103<!--
104<xsl:message terminate="no">
105 noeud courant <xsl:value-of select="name(.)"/>
106 author <xsl:value-of select="."/>
107 author_id2 <xsl:value-of select="$author_id2"/>
108</xsl:message>
109-->
110 <xsl:call-template name="one_author_id">
111  <xsl:with-param name="author_id" select="$author_id2"/>
112  <xsl:with-param name="author_name" select="."/>
113 </xsl:call-template>
114</xsl:for-each>
115
116</article>
117</xsl:template>
118
119<xsl:template match="bibliographyinfo/date"/>
120<xsl:template match="bibliography/title"/>
121
122<xsl:template name="one_author_id">
123 <xsl:param name="author_id"/>
124 <xsl:param name="author_name"/>
125 <!--
126 <xsl:message terminate="no">
127  call template avec <xsl:value-of select="$author_id"/>
128  et <xsl:value-of select="$author_name"/>
129  noeud courant <xsl:value-of select="name(.)"/>
130 </xsl:message>
131 -->
132 <!--
133 <xsl:message terminate="no">
134  author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::surname=$author_id])"/>
135  2 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::author=$author_name])"/>
136 </xsl:message>
137  -->
138 <xsl:element name="sect1">
139  <xsl:attribute name="id">
140   <xsl:value-of select="$author_id"/>
141  </xsl:attribute>
142  <xsl:element name="title">
143   <xsl:value-of select="$author_name"/>
144  </xsl:element>
145  <xsl:element name="para">
146As 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!
147  </xsl:element>
148  <xsl:element name="para">
149   The mail sent by filling this form will be used to update
150<ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink>
151and <ulink url="../../one/usernemo.html">Nemo Users</ulink>.
152  </xsl:element>
153
154  <xsl:choose>
155   <xsl:when test="document('usernemo.xml')/usersnemo/usernemo[descendant::userid=$author_id]/userid = $author_id">
156    <xsl:call-template name="form_db">
157     <xsl:with-param name="author_id" select="$author_id"/>
158     <xsl:with-param name="usernemo" select="document('usernemo.xml')/usersnemo/usernemo[descendant::userid=$author_id]"/>
159     <xsl:with-param name="visu_modif" select="'modif'"/>
160     <xsl:with-param name="bibmode" select="'yes'"/>
161    </xsl:call-template>
162   </xsl:when>
163   <xsl:otherwise>
164    <xsl:call-template name="form_db">
165     <xsl:with-param name="author_id" select="$author_id"/>
166     <xsl:with-param name="usernemo" select="document('usernemo.xml')/usersnemo/usernemo[descendant::userid='template']"/>
167     <xsl:with-param name="visu_modif" select="'modif'"/>
168     <xsl:with-param name="bibmode" select="'yes'"/>
169    </xsl:call-template>
170   </xsl:otherwise>
171  </xsl:choose>
172 </xsl:element>
173</xsl:template>
174
175</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.