source: trunk/superbib_author.xsl @ 110

Last change on this file since 110 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
RevLine 
[76]1<?xml version='1.0' encoding='ISO-8859-1'?>
2<xsl:stylesheet
[56]3version="1.0"
4xmlns:d="http://docbook.org/ns/docbook"
5xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
[49]6
[2]7<!--
8module :
9production de la liste d'auteur (nom_prenom)
10
[76]11++ pour l'instant
[55]12 $ xsltproc superbib_author.xsl biblio.xml | sort -u
[2]13
14update :
[76]15 ++ tri unique
16 ++ doublon caché ie masson_s et masson_sebastien
[2]17 ++ middle name
[33]18$Id$
[56]19fplod 2008-04-30T06:53:06Z aedon.locean-ipsl.upmc.fr (Darwin)
20chgt for dbk5 in
[2]21fplod 2007-04-03T13:10:11Z aedon.locean-ipsl.upmc.fr (Darwin)
22creation
23-->
24
25<xsl:output
26 method="text"/>
27
[56]28<xsl:template match="d:bibliography">
29 <xsl:apply-templates select="descendant::d:author"/>
[2]30</xsl:template>
31
32<xsl:template name="author">
33<!-- ++ middle name -->
34   <xsl:variable name="lowersurname">
[56]35   <xsl:value-of select="translate(d:surname,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
[2]36   </xsl:variable>
37   <xsl:variable name="lowerfirstname">
[56]38   <xsl:value-of select="translate(d:firstname,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
[2]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.