source: trunk/superbib_author.xsl @ 54

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

improvements of .xsl files headers

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?> 
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
3
4<!--
5module :
6production de la liste d'auteur (nom_prenom)
7
8++ pour l'instant
9 $ xsltproc bibnemomaf_author.xsl biblio.xml | sort -u
10
11update :
12 ++ tri unique
13 ++ doublon caché ie masson_s et masson_sebastien
14 ++ middle name
15$Id$
16fplod 2007-04-03T13:10:11Z aedon.locean-ipsl.upmc.fr (Darwin)
17creation
18-->
19
20<xsl:output
21 method="text"/>
22
23<xsl:template match="bibliography">
24 <xsl:apply-templates select="descendant::author"/>
25</xsl:template>
26
27<xsl:template name="author">
28<!-- ++ middle name -->
29   <xsl:variable name="lowersurname">
30   <xsl:value-of select="translate(surname,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
31   </xsl:variable>
32   <xsl:variable name="lowerfirstname">
33   <xsl:value-of select="translate(firstname,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
34   </xsl:variable>
35   <xsl:variable name="lowerfirstnamenob">
36    <xsl:value-of select="translate($lowerfirstname,' ','_')"/>
37   </xsl:variable>
38   <xsl:variable name="lowerfirstnamenobnod">
39    <xsl:value-of select="translate($lowerfirstnamenob,'.','')"/>
40   </xsl:variable>
41   <xsl:variable name="id_author">
42<xsl:value-of select='concat($lowersurname,"_")'/>
43<xsl:value-of select='$lowerfirstnamenobnod'/>
44   </xsl:variable>
45<xsl:value-of select='$id_author'/>
46</xsl:template>
47
48</xsl:stylesheet>
49
Note: See TracBrowser for help on using the repository browser.