[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
INPUT:
Desired OUTPUT:
The code which I am trying is
Any help is appreciated
[xsl] Unique Nodes
Subject: [xsl] Unique Nodes From: Karthik <ckkarthik@xxxxxxxxx> Date: Wed, 28 Mar 2007 17:55:26 -0400 |
Hi , I am new to XSLT. I have to grab the unique Products from the Input below
INPUT:
<Proposal> <Quote> <QuoteId>1</QuoteId> <Products> <Product> <ProdID> 1234 </ProdID> <ProdID> 5678 </ProdID> </Product> </Products> </Quote> <Quote> <QuoteId>2</QuoteId> <Products> <Product> <ProdID> 1234 </ProdID> <ProdID> 5678 </ProdID> </Product> </Products> </Quote> </Proposal>
Desired OUTPUT:
<Proposal> <Products> <ProdId>1234</ProdId> <ProdId>5678</ProdId> </Products> </Proposal>
The code which I am trying is
<xsl:variable name="unique-Product" select="//Proposal/Quote/Products/Product[not(ProductId=ancestor::Product/ProductId)]"/>
<xsl:for-each select="$unique-Product"> </xsl:for-each>
Any help is appreciated
Thanks in advance Karthik
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Convert to RFC822 via XSL, Michael Kay | Thread | Re: [xsl] Unique Nodes, Mukul Gandhi |
RE: [xsl] Dynamically define number, Angela Williams | Date | [xsl] Xpath 1.0 Question : Excludin, Simon Shutter |
Month |