source: trunk/superbib02_xml.xsl @ 56

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

migration to docbook5 for biblio.xml; bug fix in bibopa.sh; xmlto is not anymore needed; xml(starlet) must be available

  • Property svn:keywords set to Id
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<xsl:stylesheet 
3version="1.0" 
4xmlns:d="http://docbook.org/ns/docbook"
5xmlns:xl="http://www.w3.org/1999/xlink"
6xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7
8<!--
9module :
10produce a DocBook 5 with bibliograhy references sorted by authors
11
12update :
13$Id$
14fplod 2008-04-29T08:01:08Z aedon.locean-ipsl.upmc.fr (Darwin)
15chgt for dbk5
16fplod 2007-10-17T07:49:19Z aedon.locean-ipsl.upmc.fr (Darwin)
17improve sort (diacriticals)
18fplod 2007-05-18T14:31:33Z aedon.locean-ipsl.upmc.fr (Darwin)
19modif gestion id
20fplod 2007-05-16T15:15:36Z aedon.locean-ipsl.upmc.fr (Darwin)
21correction pour homonymes partiels
22fplod 2007-05-04T08:17:56Z aedon.locean-ipsl.upmc.fr (Darwin)
23externalisation de biblioentry
24fplod 2007-04-02T08:53:30Z aedon.locean-ipsl.upmc.fr (Darwin)
25journal dans biblioset
26fplod 2007-03-30T12:38:34Z aedon.locean-ipsl.upmc.fr (Darwin)
27creation
28-->
29
30
31<xsl:output
32 method="xml"
33 indent="yes"
34 encoding="utf-8"
35 omit-xml-declaration="no"/>
36
37<xsl:include href="firstname_id.xsl"/>
38<xsl:include href="surname_id.xsl"/>
39<xsl:include href="table_authors.xsl"/>
40<xsl:include href="biblioentry_xml.xsl"/>
41
42<xsl:variable name="list_author_ids" select="///d:author[not( self::node() = following::d:author )]"/>
43
44<xsl:template match="d:bibliography">
45
46<xsl:element name="article">
47<xsl:attribute name="version">5.0</xsl:attribute>
48<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute>
49<xsl:attribute name="xml:lang">en</xsl:attribute>
50<title>NEMO - Publications - Papers by authors</title>
51<info>
52<authorgroup>
53<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
54<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
55<!--++-->
56</authorgroup>
57<keywordset>
58<keyword>NEMO</keyword>
59</keywordset>
60<!-- ++ date -->
61</info>
62<para xml:id="top">
63 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
64<xsl:element name="link">
65 <xsl:attribute name="xl:href">
66  <xsl:value-of select="'./main.php'"/>
67 </xsl:attribute>
68 <xsl:text>Nemo Survey main page</xsl:text>
69</xsl:element>.
70</para>
71<para>
72You can also see <quote>NEMO - Publications - Papers</quote> sorted by
73<xsl:element name="link">
74 <xsl:attribute name="xl:href">
75  <xsl:value-of select="'./superbib01.html'"/>
76 </xsl:attribute>
77<xsl:text>years</xsl:text>
78</xsl:element>.
79</para>
80<para>
81Last update of the bibliography databank : <xsl:value-of select="d:info/d:date"/>
82</para>
83
84<sect1 xml:id="intro">
85<title>Introduction</title>
86<para>
87This document provide bibliography sorted by author's id (<emphasis>SURNAME_f</emphasis>).
88</para>
89
90<xsl:call-template name="table_authors">
91<xsl:with-param name="linktype" select="'internal'"/>
92</xsl:call-template>
93</sect1>
94
95<!-- loop on author_ids -->
96<xsl:for-each select="$list_author_ids">
97<xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>
98<xsl:variable name="author_id2">
99<xsl:call-template name="surname_id">
100 <xsl:with-param name="surname" select="d:personname/d:surname"/>
101</xsl:call-template>
102<xsl:text>_</xsl:text>
103<xsl:call-template name="firstname_id">
104 <xsl:with-param name="firstname" select="d:personname/d: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::d: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</xsl:element>
121</xsl:template>
122
123<xsl:template match="d:info/d:date"/>
124<xsl:template match="d:bibliography/d: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::d:biblioentry[descendant::d:surname=$author_id])"/>
1392 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:author=$author_name])"/>
140</xsl:message>
141-->
142<xsl:element name="sect1">
143<xsl:attribute name="xml: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="link">
149<xsl:attribute name="xl:href"><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="//d:biblioentry">
166    <xsl:sort order="descending" data-type="number" select="./d:biblioset/d:pubdate"/>
167    <xsl:for-each select="descendant::d:author">
168     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:surname"/>
169     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:firstname"/>
170     <xsl:variable name="author_id2">
171<xsl:call-template name="surname_id">
172 <xsl:with-param name="surname" select="d:personname/d:surname"/>
173</xsl:call-template>
174      <xsl:text>_</xsl:text>
175<xsl:call-template name="firstname_id">
176 <xsl:with-param name="firstname" select="d:personname/d: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::d: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.