source: trunk/superbib_author.xsl

Last change on this file was 352, checked in by pinsard, 10 years ago

fix thanks to coding rules; typo

  • Property svn:keywords set to Id
File size: 1.7 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:xsl="http://www.w3.org/1999/XSL/Transform">
6
7<!--rst
8
9.. _superbib_author.xsl:
10
11===================
12superbib_author.xsl
13===================
14
15DESCRIPTION
16===========
17
18production de la liste d'auteur (nom_prenom)
19
20++ pour l'instant
21
22.. code-block:: bash
23
24   xsltproc superbib_author.xsl biblio.xml | sort -u
25
26TODO
27====
28
29tri unique
30doublon caché ie masson_s et masson_sebastien
31middle name
32
33EVOLUTIONS
34==========
35
36$Id$
37
38- fplod 2008-04-30T06:53:06Z aedon.locean-ipsl.upmc.fr (Darwin)
39
40  * chgt for dbk5 in
41
42- fplod 2007-04-03T13:10:11Z aedon.locean-ipsl.upmc.fr (Darwin)
43
44  * creation
45
46-->
47
48<xsl:output
49 method="text"/>
50
51<xsl:template match="d:bibliography">
52 <xsl:apply-templates select="descendant::d:author"/>
53</xsl:template>
54
55<xsl:template name="author">
56<!-- ++ middle name -->
57   <xsl:variable name="lowersurname">
58   <xsl:value-of select="translate(d:surname,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
59   </xsl:variable>
60   <xsl:variable name="lowerfirstname">
61   <xsl:value-of select="translate(d:firstname,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
62   </xsl:variable>
63   <xsl:variable name="lowerfirstnamenob">
64    <xsl:value-of select="translate($lowerfirstname,' ','_')"/>
65   </xsl:variable>
66   <xsl:variable name="lowerfirstnamenobnod">
67    <xsl:value-of select="translate($lowerfirstnamenob,'.','')"/>
68   </xsl:variable>
69   <xsl:variable name="id_author">
70<xsl:value-of select='concat($lowersurname,"_")'/>
71<xsl:value-of select='$lowerfirstnamenobnod'/>
72   </xsl:variable>
73<xsl:value-of select='$id_author'/>
74</xsl:template>
75
76</xsl:stylesheet>
77
Note: See TracBrowser for help on using the repository browser.