Bonjour,
j'ai un tableau qui contient plusieur tableau je veux le reprsenter en xml et xsl pour etre afficher en internet explorer mais je connais pas comment faire voir le pièce-jointe il contient le tableau
Merci d'avance
Bonjour,
j'ai un tableau qui contient plusieur tableau je veux le reprsenter en xml et xsl pour etre afficher en internet explorer mais je connais pas comment faire voir le pièce-jointe il contient le tableau
Merci d'avance
Dernière modification par Invité ; 16/10/2009 à 00h12.
Il manque trop de données
Tu voudrais qu'on fasse ton xml et le xslt pour produire ou tu as au moins entamé le boulot ?
Bonjour,
je suis debutant en xml mais de toutes facons j'ai essai plusieur fois de faire ce tableau mais il s'affiche pas voila mon code et aider moi svp :
commerce.xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="xslcommerce.xsl"?>
<commerce>
<commande numc="1024" datec="03/01/2008" />
<commande numc="1025" datec="12/01/2008" />
<commande numc="1026" datec="16/01/2008" />
<commande numc="1027" datec="02/02/2008" />
<client numcli="123" nomcli="DUBOIS" adcli="Dijon"/>
<client numcli="123" nomcli="DUBOIS" adcli="Dijon"/>
<client numcli="124" nomcli="DUGENOU" adcli="Orléans"/>
<client numcli="125" nomcli="DURACUIRE" adcli="Bordeaux"/>
<article numA="10123" qte="20"/>
<article numA="12345" qte="50"/>
<article numA="10123" qte="30"/>
<article numA="34567" qte="25"/>
<article numA="65654" qte="20"/>
<article numA="12345" qte="15"/>
<representant numRep="10" nomRep="DUPUIS"/>
<representant numRep="11" nomRep="DUBALAI"/>
<representant numRep="12" nomRep="DUCHEMIN"/>
<representant numRep="12" nomRep="DUCHEMIN"/>
</commerce>
et le fichier xslcommerce.xsl
<?xml version="1.0" encoding="iso-8859-1"?><!-- DWXMLSource="commerce.xml" -->
<xsl:stylesheet xmlnssl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<table>
<tr bgcolor="#FFFF00">
<td colspan="2">COMMANDE</td>
<td colspan="3">CLIENT</td>
</tr>
<tr>
<td>numC</td>
<td>DateC</td>
<td>numCli</td>
<td>nomCli</td>
<td>adCli</td>
</tr>
<xsl:for-each select="commerce/commande">
<tr>
<td><xsl:value-of select="@numc"/></td>
<td><xsl:value-of select="@datec"/></td>
<xsl:for-each select="commerce/client">
<td><xsl:value-of select="@adcli"/></td>
<td><xsl:value-of select="@nomcli"/></td>
<td><xsl:value-of select="@numcli"/></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
le probleme que il affiche juste le premier tableau mais le deuxième non voila ce qui affiche:
COMMANDE CLIENT
numC DateC numCli nomCli adCli
1024 03/01/2008
1025 12/01/2008
1026 16/01/2008
1027 02/02/2008
mais ou le numcli et nom cli et adcli
aider moi pour ce probleme
aider moi svp please
Partager