Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 28-12-2008
Join Date: Nov 2008
Posts: 25
problem with xml et xslt


i have a probleme with output the table of the column the numarticle my file xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<client numc="C123" nomc="DUPONT"/>
<client numc="C124" nomc="DURAND"/>
<client numc="C125" nomc="DUBOIS"/>
<client numc="C126" nomc="DUVAL"/>
<commande numCo="Co1237" dateCo="10/10/2008" numC="C124">
<article numarticle="A9876" qteCo="25"/>
<article numarticle="A8765" qteCo="30"/>
<commande numCo="Co1235" dateCo="09/10/2008" numC="C123">
<article numarticle="A7654"  qteCo="43"/>
<commande numCo="Co1234" dateCo="08/10/2008" numC="C125">
<article numarticle="A6547" qteCo="23"/>
<commande numCo="Co1235" dateCo="09/10/2008" numC="C126">
<article numarticle="A9876" qteCo="12"/>
<article numarticle="A5367" qteCo="20"/>
<article numarticle="A7654" qteCo="30"/>
and my file the xslt :
<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 XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<!--<xsl:variable name="numero"  select="gestion/commande[@numCo='Co1235']/@numCo"/>-->
<!--<xsl:variable name="numero1" select="compagne/personnel[@nomP='duracuire']/@numP"/>-->
<table border="1" cellspacing="0" width="100%">
<tr bgcolor="yellow">
<td width="30%">numarticle</td>
<td width="30%">qteCo</td>
<!--<xsl:for-each select="gestion/commande[@numCo=$numero]">-->
<xsl:for-each select="gestion/commande[@numCo='Co1235']">
      <td width="30%"><xsl:for-each select="article/@numarticle">
      <xsl:value-of select="."/>
      <td width="30%"><xsl:for-each select="article/@qteCo">
       <xsl:value-of select="."/>
i want the column the article on the first and the quantite in the second column

aider me please
Reply With Quote

  TechArena Community > Software > Software Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "problem with xml et xslt"
Thread Thread Starter Forum Replies Last Post
Use of XSLT Mithun Seth Software Development 5 13-02-2010 01:16 PM
How to Display XML with XSLT? SKREECH Software Development 4 02-02-2010 01:19 AM
Is XSL and XSLT are same Crespin Software Development 3 21-11-2009 05:58 AM
problem in merging two sequences in xslt - Empty Shell - Software Development 6 25-10-2008 05:48 PM
XML ,XSL, XSLT problem MarceloQuad Software Development 2 25-10-2008 04:26 PM

All times are GMT +5.5. The time now is 03:19 AM.