source: trunk/superbib02_xml.xsl @ 41

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

replacing bibnemomaf by product name

  • Property svn:keywords set to Id
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
7update :
8$Id$
9fplod 2007-10-17T07:49:19Z aedon.locean-ipsl.upmc.fr (Darwin)
10improve sort (diacriticals)
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="'./main.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="'./superbib01.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="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>
95<xsl:variable name="author_id2">
96<xsl:call-template name="surname_id">
97 <xsl:with-param name="surname" select="personname/surname"/>
98</xsl:call-template>
99<xsl:text>_</xsl:text>
100<xsl:call-template name="firstname_id">
101 <xsl:with-param name="firstname" select="personname/firstname"/>
102</xsl:call-template>
103</xsl:variable>
104<!--
105<xsl:message terminate="no">
106noeud courant <xsl:value-of select="name(.)"/>
107author <xsl:value-of select="ancestor::author"/>
108author_id2 <xsl:value-of select="$author_id2"/>
109</xsl:message>
110-->
111<xsl:call-template name="one_author_id">
112<xsl:with-param name="author_id" select="$author_id2"/>
113<xsl:with-param name="author_name" select="."/>
114</xsl:call-template>
115</xsl:for-each>
116
117</article>
118</xsl:template>
119
120<xsl:template match="bibliographyinfo/date"/>
121<xsl:template match="bibliography/title"/>
122
123<xsl:template name="one_author_id">
124<xsl:param name="author_id"/>
125<xsl:param name="author_name"/>
126<!--
127<xsl:message terminate="no">
128call template avec <xsl:value-of select="$author_id"/>
129et <xsl:value-of select="$author_name"/>
130noeud courant <xsl:value-of select="name(.)"/>
131</xsl:message>
132-->
133<!--
134<xsl:message terminate="no">
135author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::surname=$author_id])"/>
1362 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::author=$author_name])"/>
137</xsl:message>
138-->
139<xsl:element name="sect1">
140<xsl:attribute name="id">
141<xsl:value-of select="$author_id"/>
142</xsl:attribute>
143<xsl:element name="title">
144<xsl:value-of select="$author_name"/>
145<xsl:element name="ulink">
146<xsl:attribute name="url"><xsl:text>#top</xsl:text></xsl:attribute>
147<xsl:element name="inlinemediaobject">
148<xsl:element name="imageobject">
149<xsl:element name="imagedata">
150<xsl:attribute name="fileref">../../images/globalicondl11x10_up.gif</xsl:attribute>
151</xsl:element>
152     </xsl:element>
153     <xsl:element name="textobject">
154      <xsl:element name="phrase">
155       <xsl:text>top</xsl:text>
156      </xsl:element>
157     </xsl:element>
158    </xsl:element>
159   </xsl:element>
160  </xsl:element>
161  <xsl:element name="orderedlist">
162   <xsl:for-each select="//biblioentry">
163    <xsl:sort order="descending" data-type="number" select="./biblioset/pubdate"/>
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.