source: trunk/bibnemomaf_author.xsl @ 11

Last change on this file since 11 was 2, checked in by smasson, 17 years ago

initial import

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