I have the following XML....
<movie>
<title>Braveheart</title>
<star>Mel Gibson</star>
<studio>Universal</studio>
<ticketsales>$700,000,000</ticketsales>
</movie>
<movie>
<title>Payback</title>
<star>Mel Gibson</star>
<studio>Universal</studio>
<ticketsales>$122,000,000</ticketsales>
</movie>
<movie>
<title>Ransom</title>
<star>Mel Gibson</star>
<studio>Universal</studio>
<ticketsales>$270,000,000</ticketsales>
</movie>
<movie>
<title>Galdiator</title>
<star>Russell Crowe</star>
<studio>Universal</studio>
<ticketsales>$340,000,000</ticketsales>
</movie>
<movie>
<title>Proof</title>
<star>Russell Crowe</star>
<studio>Universal</studio>
<ticketsales>$550,000</ticketsales>
</movie>
I want to create a style sheet which does the following...
Mel Gibson
Braveheart Universal, $700,000,000
Ransom Universal, $122,000,000
Payback Universal, $270,000,000
Russell Crowe
Galdiator Universal, $340,000,000
Proof Universal, $550,000
Thus I want to know how to search elements and select the distinct values (Russell Crowe and Mel Gibson). Is this possible using XSL?
<movie>
<title>Braveheart</title>
<star>Mel Gibson</star>
<studio>Universal</studio>
<ticketsales>$700,000,000</ticketsales>
</movie>
<movie>
<title>Payback</title>
<star>Mel Gibson</star>
<studio>Universal</studio>
<ticketsales>$122,000,000</ticketsales>
</movie>
<movie>
<title>Ransom</title>
<star>Mel Gibson</star>
<studio>Universal</studio>
<ticketsales>$270,000,000</ticketsales>
</movie>
<movie>
<title>Galdiator</title>
<star>Russell Crowe</star>
<studio>Universal</studio>
<ticketsales>$340,000,000</ticketsales>
</movie>
<movie>
<title>Proof</title>
<star>Russell Crowe</star>
<studio>Universal</studio>
<ticketsales>$550,000</ticketsales>
</movie>
I want to create a style sheet which does the following...
Mel Gibson
Braveheart Universal, $700,000,000
Ransom Universal, $122,000,000
Payback Universal, $270,000,000
Russell Crowe
Galdiator Universal, $340,000,000
Proof Universal, $550,000
Thus I want to know how to search elements and select the distinct values (Russell Crowe and Mel Gibson). Is this possible using XSL?