Hi All!
I have XML the looks like this
<Responsibility>
<Collaborators>
<Collaborator>car</Collaborator>
<Collaborator>wheel</Collaborator>
</Collaborators>
</Responsibility>
<Responsibility>
<Collaborators>
<Collaborator>car</Collaborator>
</Collaborators>
</Responsibility>
Ok so what i need to do is get all the collaborators from the XML but i only want to get them once! So if i have output car i don't want to output it again!
so the output i want from the preceding XML is
car
wheel
The way i thought i could do it was sort a list of collaborators using <xsl:sort> and then for each collaborator have an if condition that says if this collaborator equals the last collaborator in the list then don't output! However i am having trouble getting this to work any ideas??
I have XML the looks like this
<Responsibility>
<Collaborators>
<Collaborator>car</Collaborator>
<Collaborator>wheel</Collaborator>
</Collaborators>
</Responsibility>
<Responsibility>
<Collaborators>
<Collaborator>car</Collaborator>
</Collaborators>
</Responsibility>
Ok so what i need to do is get all the collaborators from the XML but i only want to get them once! So if i have output car i don't want to output it again!
so the output i want from the preceding XML is
car
wheel
The way i thought i could do it was sort a list of collaborators using <xsl:sort> and then for each collaborator have an if condition that says if this collaborator equals the last collaborator in the list then don't output! However i am having trouble getting this to work any ideas??