Bonjour,
Je voulais remplacer le mot toto par des balises </td><td>,
donc si quelqu'un peut me dire comment faire car je n'ai réussi
voici mon code xsl
Merci
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 <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="ISO-8859-1" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" indent="yes" /> <xsl:template match="/"> <table class="info_pro_thesaurus"> <tr> <td> <xsl:variable name="var1">0</xsl:variable> <xsl:for-each select="PUBLICATION/THEMA"> <xsl:variable name= "title"><xsl:value-of select= "@label"/></xsl:variable> <h3><xsl:value-of select="@label"/></h3> <ul> <xsl:for-each select="ARTICLE"> <xsl:variable name="numero" select="URL"/> <li><a href="{$numero}"> <xsl:value-of select="TITRE"/> </a></li> </xsl:for-each> </ul> <xsl:if test="$title = 'Ecomanagement'"> <xsl:text>toto</xsl:text> </xsl:if> <xsl:if test="$title = 'Urbanisme'"> <xsl:text>toto</xsl:text> </xsl:if> <xsl:if test="$title = 'Transport'"> <xsl:text>toto</xsl:text> </xsl:if> </xsl:for-each> </td> </tr> </table> </xsl:template > </xsl:stylesheet>
Bonne journée
Partager