bonjour, j'ai une page .xsl qui affiche la pagination d'une page (lien vers les autres page)
ex : lien 1 -> news 01 à news 10
lien 2 -> news 11 à news 20
lien 3 -> news 21 à news 30
etc ...
est-il possible d'inclure cette page dans un autre fichier .xsl afin de ne pas reecrire le code ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75 <table> <tr> <xsl:choose> <xsl:when test="racine/pagination/part != 1"> <td> <a> <xsl:attribute name="href"> <xsl:value-of select="racine/pagination/premier" /> </xsl:attribute> PREMIER </a> </td> <td>|</td> <td> <a> <xsl:attribute name="href"> <xsl:value-of select="racine/pagination/precedent" /> </xsl:attribute> PRECEDENT </a> </td> <td>|</td> </xsl:when> <xsl:otherwise> <td></td> <td></td> <td></td> <td></td> </xsl:otherwise> </xsl:choose> <xsl:for-each select="racine/pagination/page"> <td> <xsl:choose> <xsl:when test="nr != ../part"> <a href="#"><xsl:value-of select="nr" /></a> </xsl:when> <xsl:otherwise> <xsl:value-of select="nr" /> </xsl:otherwise> </xsl:choose> </td> <td> <xsl:if test="../part != ../dernier">|</xsl:if> </td> </xsl:for-each> <xsl:choose> <xsl:when test="racine/pagination/part != racine/pagination/dernier"> <td> <a> <xsl:attribute name="href"> <xsl:value-of select="racine/pagination/suivant" /> </xsl:attribute> SUIVANT </a> </td> <td>|</td> <td> <a> <xsl:attribute name="href"> <xsl:value-of select="racine/pagination/dernier" /> </xsl:attribute> DERNIER </a> </td> </xsl:when> <xsl:otherwise> <td></td> <td></td> <td></td> </xsl:otherwise> </xsl:choose> </tr> </table>
Partager