Changeset 56 for trunk/years_ploticus.xsl
- Timestamp:
- 04/30/08 12:01:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/years_ploticus.xsl
r54 r56 1 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 2 <xsl:stylesheet 3 version="1.0" 4 xmlns:d="http://docbook.org/ns/docbook" 5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 6 4 7 <!-- … … 16 19 update : 17 20 $Id$ 21 fplod 2008-04-29T15:28:53Z aedon.locean-ipsl.upmc.fr (Darwin) 22 chgt for dbk5 in 18 23 /usr/home/fplod/src/superbib_ws/years_ploticus.xsl sur aedon.locean-ipsl.upmc.fr 19 24 inspired by /sw/share/ploticus2/pltestsuite/bars3.htm … … 25 30 <xsl:include href="biblioentry_xml.xsl"/> 26 31 27 <xsl:key name="key_years" match="/// pubdate" use="."/>32 <xsl:key name="key_years" match="///d:pubdate" use="."/> 28 33 29 <xsl:template match=" bibliography">34 <xsl:template match="d:bibliography"> 30 35 # 31 36 # $ ploticus -o years.png png years.ploticus … … 40 45 data: 41 46 <!-- loop on years --> 42 <xsl:for-each select="/// pubdate[generate-id(.) = generate-id(key('key_years', .)[1])]">47 <xsl:for-each select="///d:pubdate[generate-id(.) = generate-id(key('key_years', .)[1])]"> 43 48 <xsl:sort order="ascending" data-type="number" select="."/> 44 49 <xsl:call-template name="one_year"> … … 81 86 82 87 <xsl:text> </xsl:text> 83 <xsl:value-of select="count(/descendant:: biblioentry[child::biblioset[child::pubdate=$year]]) "/>88 <xsl:value-of select="count(/descendant::d:biblioentry[child::d:biblioset[child::d:pubdate=$year]]) "/> 84 89 <xsl:text>
</xsl:text> 85 90 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.