Subject: [xsl] Unique Nodes From: Karthik <ckkarthik@xxxxxxxxx> Date: Sat, 31 Mar 2007 14:53:04 -0400 |
I am new to XSLT. I have to grab the unique Products from the Input below using XSLT 1.0
<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>
<Proposal> <Products> <ProdId>1234</ProdId> <ProdId>5678</ProdId> </Products> </Proposal>
<xsl:variable name="unique-Product" select="//Proposal/Quote/Products/Product[not(ProductId=ancestor::Product/ProductId)]"/>
<xsl:for-each select="$unique-Product"> </xsl:for-each>
Thanks in advance Karthik
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Unique Nodes, Mukul Gandhi | Thread | Re: [xsl] Unique Nodes, G. Ken Holman |
Re: [xsl] Re: Comma concatenation f, Mukul Gandhi | Date | Re: [xsl] Re: Comma concatenation f, Senthilkumaravelan K |
Month |