Groupby distinct how can I do that?

Posted by Christophe Debove on Stack Overflow See other posts from Stack Overflow or by Christophe Debove
Published on 2011-01-05T14:52:06Z Indexed on 2011/01/05 14:53 UTC
Read the original article Hit count: 207

Filed under:
|

Hello,

<?xml version="1.0"?>
<Products>
     <product>
         <productId >1</productId>
          <textdate>11/11/2011</textdate>
          <price>200</price>
      </product>
  <product>
         <productId >6</productId>
          <textdate>11/11/2011</textdate>
          <price>100</price>
      </product>
  <product>
         <productId >1</productId>
          <textdate>16/11/2011</textdate>
          <price>290</price>
      </product>
</Products>

I've this xml and I want an xslt transformation that regroup product something like this :

{ product 1 :
11/11/2011 - 200
16/11/2011 - 290 }
{ product 6
11/11/2011 - 100 }

I work with xslt 1.0 Asp .net C# XslCompiledTransformation

© Stack Overflow or respective owner

Related posts about xslt

Related posts about xpath