source: trunk/superbib_author.xsl @ 45

Last change on this file since 45 was 41, checked in by pinsard, 17 years ago

replacing bibnemomaf by product name (bis)

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