How check distint with less value?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Below is my xml file
<pre class="prettyprint <product>
<name>Pen</name>
<price>8</price>
</product>
<product>
<name>Bag</name>
<price>10</price>
</product>
<product>
<name>Pen</name>
<price>10</price>
</product>
<product>
<name>Pen</name>
<price>5</price>
</product>
<product>
<name>Bag</name>
<price>15</price>
</product>
<product>
<name>Pencil</name>
<price>5</price>
</product>
<products>
[/code]
I need to take distinct product with there minimum price ...using xslt 1.0
required output is
<pre class="prettyprint <products>
<product>
<name>Bag</name>
<price>10</price>
</product>
<product>
<name>Pen</name>
<price>5</price>
</product>
<product>
<name>Pencil</name>
<price>5</price>
</product>
<products>[/code]
<br/>
<br/>

<br/>

<br/>


View the full article
 
Back
Top