Changeset 56 for trunk/superbib02_xml.xsl
- Timestamp:
- 04/30/08 12:01:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/superbib02_xml.xsl
r55 r56 2 2 <xsl:stylesheet 3 3 version="1.0" 4 xmlns:d="http://docbook.org/ns/docbook" 4 5 xmlns:xl="http://www.w3.org/1999/xlink" 5 6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> … … 39 40 <xsl:include href="biblioentry_xml.xsl"/> 40 41 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"> 44 45 45 46 <xsl:element name="article"> … … 78 79 </para> 79 80 <para> 80 Last update of the bibliography databank : <xsl:value-of select=" bibliographyinfo/date"/>81 Last update of the bibliography databank : <xsl:value-of select="d:info/d:date"/> 81 82 </para> 82 83 … … 97 98 <xsl:variable name="author_id2"> 98 99 <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"/> 100 101 </xsl:call-template> 101 102 <xsl:text>_</xsl:text> 102 103 <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"/> 104 105 </xsl:call-template> 105 106 </xsl:variable> … … 107 108 <xsl:message terminate="no"> 108 109 noeud courant <xsl:value-of select="name(.)"/> 109 author <xsl:value-of select="ancestor:: author"/>110 author <xsl:value-of select="ancestor::d:author"/> 110 111 author_id2 <xsl:value-of select="$author_id2"/> 111 112 </xsl:message> … … 120 121 </xsl:template> 121 122 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"/> 124 125 125 126 <xsl:template name="one_author_id"> … … 135 136 <!-- 136 137 <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])"/>138 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:surname=$author_id])"/> 139 2 author_id_<xsl:value-of select="$author_id"/> : <xsl:value-of select="count(/descendant::d:biblioentry[descendant::d:author=$author_name])"/> 139 140 </xsl:message> 140 141 --> … … 162 163 </xsl:element> 163 164 <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"/> 169 170 <xsl:variable name="author_id2"> 170 171 <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"/> 172 173 </xsl:call-template> 173 174 <xsl:text>_</xsl:text> 174 175 <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"/> 176 177 </xsl:call-template> 177 178 </xsl:variable> … … 188 189 <xsl:call-template name="one_biblioentry"> 189 190 <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"/> 191 192 </xsl:call-template> 192 193 </xsl:if>
Note: See TracChangeset
for help on using the changeset viewer.