source: trunk/bibnemomaf02_xml.xsl @ 7

Last change on this file since 7 was 2, checked in by smasson, 17 years ago

initial import

File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2
3<!--
4module :
5sortir les références bibliographiques par personne
6
7source :
8/usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibnemomaf02_xml.xsl sur aedon.locean-ipsl.upmc.fr
9
10update :
11fplod 2007-05-18T14:31:33Z aedon.locean-ipsl.upmc.fr (Darwin)
12modif gestion id
13fplod 2007-05-16T15:15:36Z aedon.locean-ipsl.upmc.fr (Darwin)
14correction pour homonymes partiels
15fplod 2007-05-04T08:17:56Z aedon.locean-ipsl.upmc.fr (Darwin)
16externalisation de biblioentry
17fplod 2007-04-02T08:53:30Z aedon.locean-ipsl.upmc.fr (Darwin)
18journal dans biblioset
19fplod 2007-03-30T12:38:34Z aedon.locean-ipsl.upmc.fr (Darwin)
20creation
21-->
22
23<xsl:stylesheet
24 id="id" version="1.0"
25 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
26
27<xsl:output
28 method="xml"
29 indent="yes"
30 encoding="utf-8"
31 omit-xml-declaration="no"
32 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
33 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
34
35<xsl:include href="firstname_id.xsl"/>
36<xsl:include href="surname_id.xsl"/>
37<xsl:include href="table_authors.xsl"/>
38<xsl:include href="biblioentry_xml.xsl"/>
39
40<xsl:variable name="list_author_ids" select="///author[not( self::node() = following::author )]"/>
41
42<xsl:template match="bibliography">
43
44<article lang="en">
45<title>NEMO - Publications - Papers by authors</title>
46<articleinfo>
47<authorgroup>
48<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
49<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
50<!--++-->
51</authorgroup>
52<keywordset>
53<keyword>NEMO</keyword>
54</keywordset>
55<!-- ++ date -->
56</articleinfo>
57<highlights id="top">
58<para>
59 This page intents to provide an exhaustive list of the papers that have used NEMO or OPA and/or results from them. Obvioulsy many papers are missing. If you find omissions or mistakes please ask some modification via
60<xsl:element name="ulink">
61 <xsl:attribute name="url">
62  <xsl:value-of select="'./bibnemomain.php'"/>
63 </xsl:attribute>
64 <xsl:text>Nemo Survey main page</xsl:text>
65</xsl:element>.
66</para>
67</highlights>
68<para>
69You can also see <quote>NEMO - Publications - Papers</quote> sorted by
70<xsl:element name="ulink">
71 <xsl:attribute name="url">
72  <xsl:value-of select="'./bibnemomaf01.html'"/>
73 </xsl:attribute>
74<xsl:text>years</xsl:text>
75</xsl:element>.
76</para>
77<para>
78Last update of the bibliography databank : <xsl:value-of select="bibliographyinfo/date"/>
79</para>
80
81<sect1 id="intro">
82<title>Introduction</title>
83<para>
84This document provide bibliography sorted by author's id (<emphasis>SURNAME_f</emphasis>).
85</para>
86</sect1>
87
88<xsl:call-template name="table_authors">
89<xsl:with-param name="linktype" select="'internal'"/>
90</xsl:call-template>
91
92<!-- loop on author_ids -->
93<xsl:for-each select="$list_author_ids">
94<xsl:sort order="ascending" data-type="text" select="."/>
95<!--
96<xsl:message><xsl:value-of select="."/></xsl:message>
97-->
98<xsl:variable name="author_id2">
99<xsl:call-template name="surname_id">
100 <xsl:with-param name="surname" select="personname/surname"/>
101</xsl:call-template>
102<xsl:text>_</xsl:text>
103<xsl:call-template name="firstname_id">
104 <xsl:with-param name="firstname" select="personname/firstname"/>
105</xsl:call-template>
106</xsl:variable>
107<!--
108<xsl:message terminate="no">
109noeud courant <xsl:value-of select="name(.)"/>
110author <xsl:value-of select="ancestor::author"/>
111author_id2 <xsl:value-of select="$author_id2"/>
112</xsl:message>
113-->
114<xsl:call-template name="one_author_id">
115<xsl:with-param name="author_id" select="$author_id2"/>
116<xsl:with-param name="author_name" select="."/>
117</xsl:call-template>
118</xsl:for-each>
119
120</article>
121</xsl:template>
122
123<xsl:template match="bibliographyinfo/date"/>
124<xsl:template match="bibliography/title"/>
125
126<xsl:template name="one_author_id">
127<xsl:param name="author_id"/>
128<xsl:param name="author_name"/>
129<!--
130<xsl:message terminate="no">
131call template avec <xsl:value-of select="$author_id"/>
132et <xsl:value-of select="$author_name"/>
133noeud courant <xsl:value-of select="name(.)"/>
134</xsl:message>
135-->
136<!--
137<xsl:message terminate="no">
138author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::surname=$author_id])"/>
1392 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::author=$author_name])"/>
140</xsl:message>
141-->
142<xsl:element name="sect1">
143<xsl:attribute name="id">
144<xsl:value-of select="$author_id"/>
145</xsl:attribute>
146<xsl:element name="title">
147<xsl:value-of select="$author_name"/>
148<xsl:element name="ulink">
149<xsl:attribute name="url"><xsl:text>#top</xsl:text></xsl:attribute>
150<xsl:element name="inlinemediaobject">
151<xsl:element name="imageobject">
152<xsl:element name="imagedata">
153<xsl:attribute name="fileref">../../images/globalicondl11x10_up.gif</xsl:attribute>
154</xsl:element>
155     </xsl:element>
156     <xsl:element name="textobject">
157      <xsl:element name="phrase">
158       <xsl:text>top</xsl:text>
159      </xsl:element>
160     </xsl:element>
161    </xsl:element>
162   </xsl:element>
163  </xsl:element>
164  <xsl:element name="orderedlist">
165   <xsl:for-each select="//biblioentry">
166    <xsl:sort order="descending" data-type="number" select="./biblioset/pubdate"/>
167    <xsl:for-each select="descendant::author">
168     <xsl:sort order="ascending" data-type="text" select="./personname/surname"/>
169     <xsl:sort order="ascending" data-type="text" select="./personname/firstname"/>
170     <xsl:variable name="author_id2">
171<xsl:call-template name="surname_id">
172 <xsl:with-param name="surname" select="personname/surname"/>
173</xsl:call-template>
174      <xsl:text>_</xsl:text>
175<xsl:call-template name="firstname_id">
176 <xsl:with-param name="firstname" select="personname/firstname"/>
177</xsl:call-template>
178     </xsl:variable>
179
180<!--
181     <xsl:message terminate="no">
182      ref #<xsl:value-of select="position()"/>
183      _id appel <xsl:value-of select="$author_id"/>
184      _id fabrique <xsl:value-of select="$author_id2"/>
185      egal ? <xsl:value-of select="$author_id2 = $author_id"/>
186     </xsl:message>
187-->
188     <xsl:if test="$author_id2 = $author_id">
189  <xsl:call-template name="one_biblioentry">
190   <xsl:with-param name="visu_modif" select="'visu'"/>
191   <xsl:with-param name="my_biblioentry" select="ancestor::biblioentry"/>
192  </xsl:call-template>
193     </xsl:if>
194    </xsl:for-each>
195   </xsl:for-each>
196  </xsl:element>
197 </xsl:element>
198</xsl:template>
199
200</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.