source: trunk/superbib_author.xsl @ 140

Last change on this file since 140 was 76, checked in by pinsard, 16 years ago

no more NEMO reference in XSL files; project information (name and home page are in main.xml

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