source: trunk/superbibmany01_xml.xsl @ 60

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