source: trunk/bibnemomaf03_xml.xsl @ 25

Last change on this file since 25 was 25, checked in by pinsard, 17 years ago

remove arrow "top" in chunked 03 and 04 outputs

File size: 5.7 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>
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>
142  <xsl:element name="orderedlist">
143  <!--
144    <xsl:for-each select="/descendant::biblioentry[descendant::author=$author_name]">
145  -->
146   <xsl:for-each select="//biblioentry">
147    <xsl:sort order="descending" data-type="number" select="./biblioset/pubdate"/>
148
149    <xsl:for-each select="descendant::author">
150     <xsl:sort order="ascending" data-type="text" select="./personname/surname"/>
151     <xsl:sort order="ascending" data-type="text" select="./personname/firstname"/>
152     <xsl:variable name="author_id2">
153<xsl:call-template name="surname_id">
154 <xsl:with-param name="surname" select="personname/surname"/>
155</xsl:call-template>
156<xsl:text>_</xsl:text>
157<xsl:call-template name="firstname_id">
158 <xsl:with-param name="firstname" select="personname/firstname"/>
159</xsl:call-template>
160     </xsl:variable>
161
162<!--
163     <xsl:message terminate="no">
164      ref #<xsl:value-of select="position()"/>
165      _id appel <xsl:value-of select="$author_id"/>
166      _id fabrique <xsl:value-of select="$author_id2"/>
167      egal ? <xsl:value-of select="$author_id2 = $author_id"/>
168     </xsl:message>
169-->
170     <xsl:if test="$author_id2 = $author_id">
171  <xsl:call-template name="one_biblioentry">
172   <xsl:with-param name="visu_modif" select="'visu'"/>
173   <xsl:with-param name="my_biblioentry" select="ancestor::biblioentry"/>
174  </xsl:call-template>
175     </xsl:if>
176    </xsl:for-each>
177   </xsl:for-each>
178  </xsl:element>
179 </xsl:element>
180</xsl:template>
181
182</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.