[76] | 1 | <?xml version='1.0' encoding='ISO-8859-1'?> |
---|
| 2 | <xsl:stylesheet |
---|
[56] | 3 | version="1.0" |
---|
| 4 | xmlns:d="http://docbook.org/ns/docbook" |
---|
| 5 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
[49] | 6 | |
---|
[2] | 7 | <!-- |
---|
| 8 | module : |
---|
| 9 | production 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 | |
---|
| 14 | update : |
---|
[76] | 15 | ++ tri unique |
---|
| 16 | ++ doublon caché ie masson_s et masson_sebastien |
---|
[2] | 17 | ++ middle name |
---|
[33] | 18 | $Id$ |
---|
[56] | 19 | fplod 2008-04-30T06:53:06Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 20 | chgt for dbk5 in |
---|
[2] | 21 | fplod 2007-04-03T13:10:11Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 22 | creation |
---|
| 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 | |
---|