source: trunk/superbibmany02_xml.xsl @ 65

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

several bug fixes, improvement for conferences (but not complety ok), introducing test in makefile

  • Property svn:keywords set to Id
File size: 7.0 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
41<xsl:include href="firstname_id.xsl"/>
42<xsl:include href="surname_id.xsl"/>
43<xsl:include href="table_authors.xsl"/>
44<xsl:include href="form_db.xsl"/>
45
46<xsl:variable name="list_author_ids" select="///d:author[not( self::node() = following::d:author )]"/>
47
48<xsl:template match="d:bibliography">
49
50<xsl:element name="article">
51<xsl:attribute name="version">5.0</xsl:attribute>
52<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute>
53<xsl:attribute name="xml:lang"><xsl:value-of select="@xml:lang"/></xsl:attribute>
54<title>NEMO Survey - Known users</title>
55<info>
56<authorgroup>
57<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
58<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
59<!--++-->
60</authorgroup>
61<keywordset>
62<keyword>NEMO</keyword>
63</keywordset>
64<!-- ++ date -->
65</info>
66<sect1 xml:id="intro">
67<title>Intro</title>
68 <xsl:element name="para">
69These pages intent to provide an form for every know user of NEMO with bibliography and information.
70 </xsl:element>
71 <xsl:element name="para">
72As 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!
73 </xsl:element>
74<xsl:element name="para">
75   The mail sent by filling these forms will be used to update
76<link xl:href="../../one/main.php">Nemo-Publications-Papers</link>
77and <link xl:href="../../one/user.html">Nemo Users</link>.
78</xsl:element>
79
80<xsl:call-template name="para_lastupdate_bib">
81 <xsl:with-param name="language" select="@xml:lang"/>
82 <xsl:with-param name="date" select="d:info/d:date"/>
83</xsl:call-template>
84
85<xsl:call-template name="para_lastupdate_user">
86 <xsl:with-param name="language" select="@xml:lang"/>
87 <xsl:with-param name="date" select="document('user.xml')/users/date"/>
88</xsl:call-template>
89
90<xsl:call-template name="table_authors">
91 <xsl:with-param name="linktype" select="'external'"/>
92</xsl:call-template>
93
94</sect1>
95
96<!-- loop on author_ids -->
97<xsl:for-each select="$list_author_ids">
98 <xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>
99 <xsl:variable name="author_id2">
100<xsl:call-template name="surname_id">
101 <xsl:with-param name="surname" select="d:personname/d:surname"/>
102</xsl:call-template>
103<xsl:text>_</xsl:text>
104<xsl:call-template name="firstname_id">
105 <xsl:with-param name="firstname" select="d:personname/d:firstname"/>
106</xsl:call-template>
107</xsl:variable>
108<!--
109<xsl:message terminate="no">
110 noeud courant <xsl:value-of select="name(.)"/>
111 author <xsl:value-of select="."/>
112 author_id2 <xsl:value-of select="$author_id2"/>
113</xsl:message>
114-->
115 <xsl:call-template name="one_author_id">
116  <xsl:with-param name="author_id" select="$author_id2"/>
117  <xsl:with-param name="author_name" select="."/>
118 </xsl:call-template>
119</xsl:for-each>
120
121</xsl:element>
122</xsl:template>
123
124<xsl:template match="d:info/d:date"/>
125<xsl:template match="d:bibliography/d:title"/>
126
127<xsl:template name="one_author_id">
128 <xsl:param name="author_id"/>
129 <xsl:param name="author_name"/>
130 <!--
131 <xsl:message terminate="no">
132  call template avec <xsl:value-of select="$author_id"/>
133  et <xsl:value-of select="$author_name"/>
134  noeud courant <xsl:value-of select="name(.)"/>
135 </xsl:message>
136 -->
137 <!--
138 <xsl:message terminate="no">
139  author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:surname=$author_id])"/>
140  2 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:author=$author_name])"/>
141 </xsl:message>
142  -->
143 <xsl:element name="sect1">
144  <xsl:attribute name="xml:id">
145   <xsl:value-of select="$author_id"/>
146  </xsl:attribute>
147  <xsl:element name="title">
148   <xsl:value-of select="$author_name"/>
149  </xsl:element>
150  <xsl:element name="para">
151As 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!
152  </xsl:element>
153  <xsl:element name="para">
154   The mail sent by filling this form will be used to update
155<link xl:href="../../one/main.php">Nemo-Publications-Papers</link>
156and <link xl:href="../../one/user.html">Nemo Users</link>.
157  </xsl:element>
158
159  <xsl:choose>
160   <xsl:when test="document('user.xml')/users/user[descendant::userid=$author_id]/userid = $author_id">
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=$author_id]"/>
164     <xsl:with-param name="visu_modif" select="'modif'"/>
165     <xsl:with-param name="bibmode" select="'yes'"/>
166    </xsl:call-template>
167   </xsl:when>
168   <xsl:otherwise>
169    <xsl:call-template name="form_db">
170     <xsl:with-param name="author_id" select="$author_id"/>
171     <xsl:with-param name="user" select="document('user.xml')/users/user[descendant::userid='template']"/>
172     <xsl:with-param name="visu_modif" select="'modif'"/>
173     <xsl:with-param name="bibmode" select="'yes'"/>
174    </xsl:call-template>
175   </xsl:otherwise>
176  </xsl:choose>
177 </xsl:element>
178</xsl:template>
179
180</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.