How to find unique element.

Subject: How to find unique element.
From: "Anand A Tarkas , Gurgaon" <atarkas@xxxxxxxxxxxxxxx>
Date: Mon, 17 May 1999 20:15:54 +0530
I am learning xsl and have got a problem

we have a xml which looks like:
<?xsl version="1.0"?>
      <Employee empcode="1">
             <project pcode="p1">
	      <duration hours="10" />	 
	<project pcode="p2">
	       <duration hours="8" />	 
      </Employee	>
      <Employee empcode="2">
             <project pcode="p1">
	      <duration hours="14"/>	 
	<project pcode="p2">
	       <duration hours="6" />	 
            <project pcode="p3">
	       <duration hours="12" />	 
      </Employee	>
1) How do i find out unique projectcodes?
2) How to display the total hours put in by all the employees in a
particular project?

Any information regarding sites related to xsl will definitely help me 

 XSL-List info and archive:

Current Thread