source: trunk/bibnemomaf03_xml.xsl @ 7

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

initial import

File size: 6.2 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2
3<!--
4module :
5sortir les références bibliographiques par personne en morceau
6
7source :
8/usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibnemomaf03_xml.xsl sur aedon.locean-ipsl.upmc.fr
9
10update :
11fplod 2007-05-18T14:57:52Z aedon.locean-ipsl.upmc.fr (Darwin)
12modif gestion id
13fplod 2007-05-16T15:19:57Z aedon.locean-ipsl.upmc.fr (Darwin)
14correction pour homonymes partiels
15fplod 2007-05-04T09:23:05Z aedon.locean-ipsl.upmc.fr (Darwin)
16creation à partir de bibnemomaf02_xml.xsl mais liens externes
17-->
18
19<xsl:stylesheet
20 id="id" version="1.0"
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
22
23<xsl:output
24 method="xml"
25 indent="yes"
26 encoding="ISO-8859-1"
27 omit-xml-declaration="no"
28 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
29 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
30
31<xsl:include href="firstname_id.xsl"/>
32<xsl:include href="surname_id.xsl"/>
33<xsl:include href="table_authors.xsl"/>
34<xsl:include href="biblioentry_xml.xsl"/>
35
36<xsl:variable name="list_author_ids" select="///author[not( self::node() = following::author )]"/>
37
38<xsl:template match="bibliography">
39
40<article lang="en">
41<title>NEMO - Publications - Papers by authors</title>
42<articleinfo>
43<authorgroup>
44<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
45<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
46<!--++-->
47</authorgroup>
48<keywordset>
49<keyword>NEMO</keyword>
50</keywordset>
51<!-- ++ date -->
52</articleinfo>
53<highlights id="top">
54<para>
55 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
56<xsl:element name="ulink">
57 <xsl:attribute name="url">
58  <xsl:value-of select="'../../one/bibnemomain.php'"/>
59 </xsl:attribute>
60 <xsl:text>Nemo Survey main page</xsl:text>
61</xsl:element>.
62</para>
63</highlights>
64<para>
65You can also see <quote>NEMO - Publications - Papers</quote> sorted by
66<xsl:element name="ulink">
67 <xsl:attribute name="url">
68  <xsl:value-of select="'../../one/bibnemomaf01.html'"/>
69 </xsl:attribute>
70<xsl:text>years</xsl:text>
71</xsl:element>.
72</para>
73<para>
74Last update of the bibliography databank : <xsl:value-of select="bibliographyinfo/date"/>
75</para>
76
77<sect1 id="intro">
78<title>Introduction</title>
79<para>
80This document provide bibliography sorted by author's id (<emphasis>SURNAME_f</emphasis>).
81</para>
82</sect1>
83
84<xsl:call-template name="table_authors">
85<xsl:with-param name="linktype" select="'external'"/>
86</xsl:call-template>
87
88<!-- loop on author_ids -->
89<xsl:for-each select="$list_author_ids">
90<xsl:sort order="ascending" data-type="text" select="."/>
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">
102noeud courant <xsl:value-of select="name(.)"/>
103author <xsl:value-of select="."/>
104author_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">
124call template avec <xsl:value-of select="$author_id"/>
125et <xsl:value-of select="$author_name"/>
126noeud courant <xsl:value-of select="name(.)"/>
127</xsl:message>
128-->
129<!--
130<xsl:message terminate="no">
131author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::surname=$author_id])"/>
1322 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 name="ulink">
142<xsl:attribute name="url"><xsl:text>#top</xsl:text></xsl:attribute>
143<xsl:element name="inlinemediaobject">
144<xsl:element name="imageobject">
145<xsl:element name="imagedata">
146<xsl:attribute name="fileref">../../images/globalicondl11x10_up.gif</xsl:attribute>
147</xsl:element>
148     </xsl:element>
149     <xsl:element name="textobject">
150      <xsl:element name="phrase">
151       <xsl:text>top</xsl:text>
152      </xsl:element>
153     </xsl:element>
154    </xsl:element>
155   </xsl:element>
156  </xsl:element>
157  <xsl:element name="orderedlist">
158  <!--
159    <xsl:for-each select="/descendant::biblioentry[descendant::author=$author_name]">
160  -->
161   <xsl:for-each select="//biblioentry">
162    <xsl:sort order="descending" data-type="number" select="./biblioset/pubdate"/>
163
164    <xsl:for-each select="descendant::author">
165     <xsl:sort order="ascending" data-type="text" select="./personname/surname"/>
166     <xsl:sort order="ascending" data-type="text" select="./personname/firstname"/>
167     <xsl:variable name="author_id2">
168<xsl:call-template name="surname_id">
169 <xsl:with-param name="surname" select="personname/surname"/>
170</xsl:call-template>
171<xsl:text>_</xsl:text>
172<xsl:call-template name="firstname_id">
173 <xsl:with-param name="firstname" select="personname/firstname"/>
174</xsl:call-template>
175     </xsl:variable>
176
177<!--
178     <xsl:message terminate="no">
179      ref #<xsl:value-of select="position()"/>
180      _id appel <xsl:value-of select="$author_id"/>
181      _id fabrique <xsl:value-of select="$author_id2"/>
182      egal ? <xsl:value-of select="$author_id2 = $author_id"/>
183     </xsl:message>
184-->
185     <xsl:if test="$author_id2 = $author_id">
186  <xsl:call-template name="one_biblioentry">
187   <xsl:with-param name="visu_modif" select="'visu'"/>
188   <xsl:with-param name="my_biblioentry" select="ancestor::biblioentry"/>
189  </xsl:call-template>
190     </xsl:if>
191    </xsl:for-each>
192   </xsl:for-each>
193  </xsl:element>
194 </xsl:element>
195</xsl:template>
196
197</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.