source: trunk/superbibmany02_xml.xsl @ 60

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

introduce language dependency on each update message (bibilo, user, html files)

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