source: trunk/superbib02_rest.xsl @ 164

Last change on this file since 164 was 152, checked in by pinsard, 12 years ago

going on with restsuperbibmany01_xml.xsl

  • Property svn:keywords set to Id
File size: 4.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<!--rst
9
10.. _superbib02_rest.xsl:
11
12===================
13superbib02_rest.xsl
14===================
15
16produce a DocBook 5 with bibliograhy references sorted by authors
17
18TODO
19====
20
21make it beautifull
22
23EVOLUTIONS
24==========
25
26$Id$
27
28$URL$
29
30- fplod 20120229
31
32  * creation from superbib02_xml.xsl
33
34-->
35
36
37<xsl:output
38 method="text"
39 indent="yes"/>
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_rest.xsl"/>
45
46<xsl:variable name="list_author_ids" select="///d:author[not( self::node() = following::d:author )]"/>
47
48<xsl:variable name="project">
49 <xsl:value-of select="document('main.xml')//d:keyword[@xml:id='project']"/>
50</xsl:variable>
51
52<xsl:template match="d:bibliography">
53
54<xsl:value-of select="$project"/> - Publications - Papers by authors
55====================================================================
56
57.. meta::
58   :keyword: <xsl:value-of select="$project"/>
59
60.. _top:
61
62This page intents to provide an exhaustive list of the papers that have used <xsl:value-of select="$project"/> and/or results from them. Obvioulsy many papers are missing. If you find omissions or mistakes please ask some modification via
63++lien <xsl:value-of select="'./main.php'"/>
64 <xsl:value-of select="document('main.xml')/d:article/d:title"/>
65
66 You can also see **<xsl:value-of select="$project"/> - Publications - Papers** sorted by
67++lien  <xsl:value-of select="'./superbib01.html'"/>
68
69<xsl:text>years</xsl:text>
70
71<xsl:call-template name="para_lastupdate_bib">
72 <xsl:with-param name="language" select="@xml:lang"/>
73 <xsl:with-param name="date" select="'ginette'"/>
74 <!-- ++
75 <xsl:with-param name="date" select="d:info/d:date"/>
76 -->
77 <xsl:with-param name="mode" select="'rest'"/>
78</xsl:call-template>
79
80.. _intro:
81
82Introduction
83=============
84
85This document provide bibliography sorted by author's id (**SURNAME_f**).
86
87<xsl:call-template name="table_authors">
88<xsl:with-param name="linktype" select="'internal'"/>
89</xsl:call-template>
90
91<!-- loop on author_ids -->
92<xsl:for-each select="$list_author_ids">
93<xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>
94<xsl:variable name="author_id2">
95<xsl:call-template name="surname_id">
96 <xsl:with-param name="surname" select="d:personname/d:surname"/>
97</xsl:call-template>
98<xsl:text>_</xsl:text>
99<xsl:call-template name="firstname_id">
100 <xsl:with-param name="firstname" select="d:personname/d:firstname"/>
101</xsl:call-template>
102</xsl:variable>
103<xsl:call-template name="one_author_id">
104<xsl:with-param name="author_id" select="$author_id2"/>
105<xsl:with-param name="author_name" select="."/>
106</xsl:call-template>
107</xsl:for-each>
108
109</xsl:template>
110
111<xsl:template match="d:info/d:date"/>
112<xsl:template match="d:bibliography/d:title"/>
113
114<xsl:template name="one_author_id">
115<xsl:param name="author_id"/>
116<xsl:param name="author_name"/>
117
118.. _<xsl:value-of select="$author_id"/>:
119
120<xsl:value-of select="normalize-space($author_name/d:personname/d:firstname)"/><xsl:text> </xsl:text><xsl:value-of select="normalize-space($author_name/d:personname/d:surname)"/>
121+++++++++++++++++++++++++++++++++++++++++++++++
122
123.. |top| image:: ../../images/globalicondl11x10_up.gif
124
125_top:: `ref:`top`
126
127
128   |top|
129
130   <xsl:for-each select="//d:biblioentry">
131    <xsl:sort order="descending" data-type="number" select="./d:biblioset/d:pubdate"/>
132    <xsl:for-each select="descendant::d:author">
133     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:surname"/>
134     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:firstname"/>
135     <xsl:variable name="author_id2">
136<xsl:call-template name="surname_id">
137 <xsl:with-param name="surname" select="d:personname/d:surname"/>
138</xsl:call-template>
139      <xsl:text>_</xsl:text>
140<xsl:call-template name="firstname_id">
141 <xsl:with-param name="firstname" select="d:personname/d:firstname"/>
142</xsl:call-template>
143     </xsl:variable>
144
145     <xsl:if test="$author_id2 = $author_id">
146  <xsl:call-template name="one_biblioentry_rest">
147   <xsl:with-param name="visu_modif" select="'visu'"/>
148   <xsl:with-param name="type" select="'raw'"/>
149   <xsl:with-param name="my_biblioentry" select="ancestor::d:biblioentry"/>
150  </xsl:call-template>
151     </xsl:if>
152    </xsl:for-each>
153   </xsl:for-each>
154</xsl:template>
155
156</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.