source: trunk/superbib02_xml.xsl @ 58

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

introduce language dependency on each update message (bibilo, user, html files)

  • Property svn:keywords set to Id
File size: 6.8 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-30T15:02:03Z aedon.locean-ipsl.upmc.fr (Darwin)
15language inherited from biblio.xml
16fplod 2008-04-29T08:01:08Z aedon.locean-ipsl.upmc.fr (Darwin)
17chgt for dbk5
18fplod 2007-10-17T07:49:19Z aedon.locean-ipsl.upmc.fr (Darwin)
19improve sort (diacriticals)
20fplod 2007-05-18T14:31:33Z aedon.locean-ipsl.upmc.fr (Darwin)
21modif gestion id
22fplod 2007-05-16T15:15:36Z aedon.locean-ipsl.upmc.fr (Darwin)
23correction pour homonymes partiels
24fplod 2007-05-04T08:17:56Z aedon.locean-ipsl.upmc.fr (Darwin)
25externalisation de biblioentry
26fplod 2007-04-02T08:53:30Z aedon.locean-ipsl.upmc.fr (Darwin)
27journal dans biblioset
28fplod 2007-03-30T12:38:34Z aedon.locean-ipsl.upmc.fr (Darwin)
29creation
30-->
31
32
33<xsl:output
34 method="xml"
35 indent="yes"
36 encoding="utf-8"
37 omit-xml-declaration="no"/>
38
39<xsl:include href="message_lang.xsl"/>
40
41<xsl:include href="firstname_id.xsl"/>
42<xsl:include href="surname_id.xsl"/>
43<xsl:include href="table_authors.xsl"/>
44<xsl:include href="biblioentry_xml.xsl"/>
45
46<xsl:variable name="list_author_ids" select="///d:author[not( self::node() = following::d:author )]"/>
47
48<xsl:template match="d:bibliography">
49
50<xsl:element name="article">
51<xsl:attribute name="version">5.0</xsl:attribute>
52<xsl:attribute name="xmlns">http://docbook.org/ns/docbook</xsl:attribute>
53<xsl:attribute name="xml:lang"><xsl:value-of select="@xml:lang"/></xsl:attribute>
54<title>NEMO - Publications - Papers by authors</title>
55<info>
56<authorgroup>
57<author><personname><firstname>Sébastien</firstname> <surname>Masson</surname></personname></author>
58<author><personname><firstname>Françoise</firstname> <surname>Pinsard</surname></personname></author>
59<!--++-->
60</authorgroup>
61<keywordset>
62<keyword>NEMO</keyword>
63</keywordset>
64<!-- ++ date -->
65</info>
66<para xml:id="top">
67 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
68<xsl:element name="link">
69 <xsl:attribute name="xl:href">
70  <xsl:value-of select="'./main.php'"/>
71 </xsl:attribute>
72 <xsl:text>Nemo Survey main page</xsl:text>
73</xsl:element>.
74</para>
75<para>
76You can also see <quote>NEMO - Publications - Papers</quote> sorted by
77<xsl:element name="link">
78 <xsl:attribute name="xl:href">
79  <xsl:value-of select="'./superbib01.html'"/>
80 </xsl:attribute>
81<xsl:text>years</xsl:text>
82</xsl:element>.
83</para>
84
85<xsl:call-template name="para_lastupdate_bib">
86 <xsl:with-param name="language" select="@xml:lang"/>
87 <xsl:with-param name="date" select="d:info/d:date"/>
88</xsl:call-template>
89
90<sect1 xml:id="intro">
91<title>Introduction</title>
92<para>
93This document provide bibliography sorted by author's id (<emphasis>SURNAME_f</emphasis>).
94</para>
95
96<xsl:call-template name="table_authors">
97<xsl:with-param name="linktype" select="'internal'"/>
98</xsl:call-template>
99</sect1>
100
101<!-- loop on author_ids -->
102<xsl:for-each select="$list_author_ids">
103<xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>
104<xsl:variable name="author_id2">
105<xsl:call-template name="surname_id">
106 <xsl:with-param name="surname" select="d:personname/d:surname"/>
107</xsl:call-template>
108<xsl:text>_</xsl:text>
109<xsl:call-template name="firstname_id">
110 <xsl:with-param name="firstname" select="d:personname/d:firstname"/>
111</xsl:call-template>
112</xsl:variable>
113<!--
114<xsl:message terminate="no">
115noeud courant <xsl:value-of select="name(.)"/>
116author <xsl:value-of select="ancestor::d:author"/>
117author_id2 <xsl:value-of select="$author_id2"/>
118</xsl:message>
119-->
120<xsl:call-template name="one_author_id">
121<xsl:with-param name="author_id" select="$author_id2"/>
122<xsl:with-param name="author_name" select="."/>
123</xsl:call-template>
124</xsl:for-each>
125
126</xsl:element>
127</xsl:template>
128
129<xsl:template match="d:info/d:date"/>
130<xsl:template match="d:bibliography/d:title"/>
131
132<xsl:template name="one_author_id">
133<xsl:param name="author_id"/>
134<xsl:param name="author_name"/>
135<!--
136<xsl:message terminate="no">
137call template avec <xsl:value-of select="$author_id"/>
138et <xsl:value-of select="$author_name"/>
139noeud courant <xsl:value-of select="name(.)"/>
140</xsl:message>
141-->
142<!--
143<xsl:message terminate="no">
144author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:surname=$author_id])"/>
1452 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:author=$author_name])"/>
146</xsl:message>
147-->
148<xsl:element name="sect1">
149<xsl:attribute name="xml:id">
150<xsl:value-of select="$author_id"/>
151</xsl:attribute>
152<xsl:element name="title">
153<xsl:value-of select="$author_name"/>
154<xsl:element name="link">
155<xsl:attribute name="xl:href"><xsl:text>#top</xsl:text></xsl:attribute>
156<xsl:element name="inlinemediaobject">
157<xsl:element name="imageobject">
158<xsl:element name="imagedata">
159<xsl:attribute name="fileref">../../images/globalicondl11x10_up.gif</xsl:attribute>
160</xsl:element>
161     </xsl:element>
162     <xsl:element name="textobject">
163      <xsl:element name="phrase">
164       <xsl:text>top</xsl:text>
165      </xsl:element>
166     </xsl:element>
167    </xsl:element>
168   </xsl:element>
169  </xsl:element>
170  <xsl:element name="orderedlist">
171   <xsl:for-each select="//d:biblioentry">
172    <xsl:sort order="descending" data-type="number" select="./d:biblioset/d:pubdate"/>
173    <xsl:for-each select="descendant::d:author">
174     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:surname"/>
175     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:firstname"/>
176     <xsl:variable name="author_id2">
177<xsl:call-template name="surname_id">
178 <xsl:with-param name="surname" select="d:personname/d:surname"/>
179</xsl:call-template>
180      <xsl:text>_</xsl:text>
181<xsl:call-template name="firstname_id">
182 <xsl:with-param name="firstname" select="d:personname/d:firstname"/>
183</xsl:call-template>
184     </xsl:variable>
185
186<!--
187     <xsl:message terminate="no">
188      ref #<xsl:value-of select="position()"/>
189      _id appel <xsl:value-of select="$author_id"/>
190      _id fabrique <xsl:value-of select="$author_id2"/>
191      egal ? <xsl:value-of select="$author_id2 = $author_id"/>
192     </xsl:message>
193-->
194     <xsl:if test="$author_id2 = $author_id">
195  <xsl:call-template name="one_biblioentry">
196   <xsl:with-param name="visu_modif" select="'visu'"/>
197   <xsl:with-param name="my_biblioentry" select="ancestor::d:biblioentry"/>
198  </xsl:call-template>
199     </xsl:if>
200    </xsl:for-each>
201   </xsl:for-each>
202  </xsl:element>
203 </xsl:element>
204</xsl:template>
205
206</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.