Bonjour
Je voulais de l'aide en XML, je suis débutant là dessus.
Je veux remplir un tableau : voici mon 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
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
 
<xsl:output method="html"/>
 
<xsl:template match="/">
	<Table class="tabResult" cellpading="2" cellspacing="3" width="100%">
		<TR class="enteteTableau">
		    <TH></TH>
			<TH>Région</TH>
			<TH>Nom Prescripteur</TH>
			<TH>Prénom(s)</TH>
			<TH>Accepte_Partage</TH>
			<TH>Identifiant VitalWeb</TH>
		</TR>
		<xsl:apply-templates select="ROOT/row" />
	</Table>
</xsl:template>
 
<xsl:template match="row">
	<TR class="ligne">
	<xsl:if test="position() mod 2 = 0">
      <xsl:attribute name="class">altern</xsl:attribute>
	</xsl:if>
		<TD width="20">
			<xsl:value-of select="position()"/>
		</TD>
		<TD width="20">
			<xsl:value-of select="@region"/>
		</TD>
		<TD align="left">
			<xsl:value-of select="@nom"/>
		</TD>
 
		<TD align="left"><xsl:value-of select="@prenom"/></TD>
		 <TD align="left" width="20">
		 <xsl:value-of Checkbox setShape="@accepte_partage" setLabel="Checkbox 1"/></xsl:checkbox> 
     	 </TD>
 
		<TD align="left">
		    <xsl:if test="@prescrLogin">
				<xsl:attribute name="title">Simulation connexion <xsl:value-of select="@nom"/> <xsl:value-of select="@prenom"/></xsl:attribute>
			</xsl:if>
		    <!--a href="default.aspx?pr={@prescrLogin}" target="_new"-->		    
		    <a href="#">
				<xsl:if test="@prescrLogin">
					<xsl:attribute name="onclick">window.location.replace('default.aspx?pr=<xsl:value-of select="@prescrLogin"/>');</xsl:attribute> 
				</xsl:if>		        
				<xsl:value-of select="@prescrLogin"/>
			</a>
		</TD>
	</TR>
</xsl:template>
 
</xsl:stylesheet>
Je voulais faire de la colonne accepte_partage une zoneà crocher mais je n'y arrive.
est ce ke kelk'un peut m'aider
merçi