source: trunk/superbibmany02_xml.xsl @ 39

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

replacing bibnemomain by main

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