Ignore:
Timestamp:
04/30/08 12:01:25 (16 years ago)
Author:
pinsard
Message:

migration to docbook5 for biblio.xml; bug fix in bibopa.sh; xmlto is not anymore needed; xml(starlet) must be available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/superbib02_xml.xsl

    r55 r56  
    22<xsl:stylesheet  
    33version="1.0"  
     4xmlns:d="http://docbook.org/ns/docbook" 
    45xmlns:xl="http://www.w3.org/1999/xlink" 
    56xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
     
    3940<xsl:include href="biblioentry_xml.xsl"/> 
    4041 
    41 <xsl:variable name="list_author_ids" select="///author[not( self::node() = following::author )]"/> 
    42  
    43 <xsl:template match="bibliography"> 
     42<xsl:variable name="list_author_ids" select="///d:author[not( self::node() = following::d:author )]"/> 
     43 
     44<xsl:template match="d:bibliography"> 
    4445 
    4546<xsl:element name="article"> 
     
    7879</para> 
    7980<para> 
    80 Last update of the bibliography databank : <xsl:value-of select="bibliographyinfo/date"/> 
     81Last update of the bibliography databank : <xsl:value-of select="d:info/d:date"/> 
    8182</para> 
    8283 
     
    9798<xsl:variable name="author_id2"> 
    9899<xsl:call-template name="surname_id"> 
    99  <xsl:with-param name="surname" select="personname/surname"/> 
     100 <xsl:with-param name="surname" select="d:personname/d:surname"/> 
    100101</xsl:call-template> 
    101102<xsl:text>_</xsl:text> 
    102103<xsl:call-template name="firstname_id"> 
    103  <xsl:with-param name="firstname" select="personname/firstname"/> 
     104 <xsl:with-param name="firstname" select="d:personname/d:firstname"/> 
    104105</xsl:call-template> 
    105106</xsl:variable> 
     
    107108<xsl:message terminate="no"> 
    108109noeud courant <xsl:value-of select="name(.)"/> 
    109 author <xsl:value-of select="ancestor::author"/> 
     110author <xsl:value-of select="ancestor::d:author"/> 
    110111author_id2 <xsl:value-of select="$author_id2"/> 
    111112</xsl:message> 
     
    120121</xsl:template> 
    121122 
    122 <xsl:template match="bibliographyinfo/date"/> 
    123 <xsl:template match="bibliography/title"/> 
     123<xsl:template match="d:info/d:date"/> 
     124<xsl:template match="d:bibliography/d:title"/> 
    124125 
    125126<xsl:template name="one_author_id"> 
     
    135136<!-- 
    136137<xsl:message terminate="no"> 
    137 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::surname=$author_id])"/> 
    138 2 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::biblioentry[descendant::author=$author_name])"/> 
     138author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:surname=$author_id])"/> 
     1392 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:author=$author_name])"/> 
    139140</xsl:message> 
    140141--> 
     
    162163  </xsl:element> 
    163164  <xsl:element name="orderedlist"> 
    164    <xsl:for-each select="//biblioentry"> 
    165     <xsl:sort order="descending" data-type="number" select="./biblioset/pubdate"/> 
    166     <xsl:for-each select="descendant::author"> 
    167      <xsl:sort order="ascending" data-type="text" select="./personname/surname"/> 
    168      <xsl:sort order="ascending" data-type="text" select="./personname/firstname"/> 
     165   <xsl:for-each select="//d:biblioentry"> 
     166    <xsl:sort order="descending" data-type="number" select="./d:biblioset/d:pubdate"/> 
     167    <xsl:for-each select="descendant::d:author"> 
     168     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:surname"/> 
     169     <xsl:sort order="ascending" data-type="text" select="./d:personname/d:firstname"/> 
    169170     <xsl:variable name="author_id2"> 
    170171<xsl:call-template name="surname_id"> 
    171  <xsl:with-param name="surname" select="personname/surname"/> 
     172 <xsl:with-param name="surname" select="d:personname/d:surname"/> 
    172173</xsl:call-template> 
    173174      <xsl:text>_</xsl:text> 
    174175<xsl:call-template name="firstname_id"> 
    175  <xsl:with-param name="firstname" select="personname/firstname"/> 
     176 <xsl:with-param name="firstname" select="d:personname/d:firstname"/> 
    176177</xsl:call-template> 
    177178     </xsl:variable> 
     
    188189  <xsl:call-template name="one_biblioentry"> 
    189190   <xsl:with-param name="visu_modif" select="'visu'"/> 
    190    <xsl:with-param name="my_biblioentry" select="ancestor::biblioentry"/> 
     191   <xsl:with-param name="my_biblioentry" select="ancestor::d:biblioentry"/> 
    191192  </xsl:call-template> 
    192193     </xsl:if> 
Note: See TracChangeset for help on using the changeset viewer.