source: trunk/superbibmany02_xml.xsl @ 57

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

migration to docbook5 for biblio.xml; bug fix in bibopa.sh; xmlto is not anymore needed; xml(starlet) must be available

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