source: trunk/superbib02_xml.xsl @ 51

Last change on this file since 51 was 49, checked in by pinsard, 16 years ago

improvements of .xsl files headers

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