Changeset 6


Ignore:
Timestamp:
06/06/07 16:24:19 (17 years ago)
Author:
pinsard
Message:

add nb of publications by year. see ticket:3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bibnemomaf01_xml.xsl

    • Property svn:keywords set to Id
    r2 r6  
    99 
    1010update : 
     11$Id$ 
    1112++ plein de trucs 
    1213fplod 2007-05-21T14:06:53Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    6364    </xsl:for-each> 
    6465   </xsl:element> 
     66   <xsl:element name="row"> 
     67    <xsl:for-each select="///pubdate[not( self::node() = following::pubdate )]"> 
     68     <xsl:sort order="descending" data-type="number" select="."/> 
     69     <xsl:element name="entry"> 
     70      <xsl:element name="emphasis"> 
     71       <xsl:attribute name="role">bold</xsl:attribute> 
     72<xsl:variable name="nb_current"> 
     73 <xsl:variable name="current_year"><xsl:value-of select="."/></xsl:variable> 
     74 <xsl:value-of select="count(/descendant::biblioentry[child::biblioset[child::pubdate=$current_year]])"/> 
     75</xsl:variable> 
     76       <xsl:value-of select="$nb_current"/> 
     77      </xsl:element> 
     78     </xsl:element> 
     79    </xsl:for-each> 
     80   </xsl:element> 
    6581  </xsl:element> 
    6682 </xsl:element> 
Note: See TracChangeset for help on using the changeset viewer.