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

Sponsored Links



problem with xml et xslt

Software Development


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

hello,

i have a probleme with output the table of the column the numarticle my file xml:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<gestion>
<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>
<commande numCo="Co1235" dateCo="09/10/2008" numC="C123">
<article numarticle="A7654"  qteCo="43"/>
</commande>
<commande numCo="Co1234" dateCo="08/10/2008" numC="C125">
<article numarticle="A6547" qteCo="23"/>
</commande>
<commande numCo="Co1235" dateCo="09/10/2008" numC="C126">
<article numarticle="A9876" qteCo="12"/>
<article numarticle="A5367" qteCo="20"/>
<article numarticle="A7654" qteCo="30"/>
</commande>
</gestion>
and my file the xslt :
Code:
<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>
</tr>
<!--<xsl:for-each select="gestion/commande[@numCo=$numero]">-->
<xsl:for-each select="gestion/commande[@numCo='Co1235']">
    <tr>
      <td width="30%"><xsl:for-each select="article/@numarticle">
      <xsl:value-of select="."/>
      </xsl:for-each></td>
      <td width="30%"><xsl:for-each select="article/@qteCo">
       <xsl:value-of select="."/>
      </xsl:for-each></td>
    </tr> 
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
i want the column the article on the first and the quantite in the second column

thanks
aider me please

Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



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 12:16 PM
How to Display XML with XSLT? SKREECH Software Development 4 02-02-2010 12:19 AM
Is XSL and XSLT are same Crespin Software Development 3 21-11-2009 04: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 11:35 PM.