Hi All
I have an XML output that looks similar to the below ...
<ELEC01_SOWaitingParts3>
<JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum>
<JobOper_OprSeq><![CDATA[60]]></JobOper_OprSeq>
<JobOper_OpCode><![CDATA[A/W]]></JobOper_OpCode>
<JobOper_OpDesc><![CDATA[ACID/WASH]]></JobOper_OpDesc>
<JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete>
<JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted>
</ELEC01_SOWaitingParts3>
<ELEC01_SOWaitingParts3>
<JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum>
<JobOper_OprSeq><![CDATA[70]]></JobOper_OprSeq>
<JobOper_OpCode><![CDATA[INSP A/W]]></JobOper_OpCode>
<JobOper_OpDesc><![CDATA[INSP ACID/WASH]]></JobOper_OpDesc>
<JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete>
<JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted>
</ELEC01_SOWaitingParts3>
<ELEC01_SOWaitingParts3>
<JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum>
<JobOper_OprSeq><![CDATA[80]]></JobOper_OprSeq>
<JobOper_OpCode><![CDATA[GET F/L]]></JobOper_OpCode>
<JobOper_OpDesc><![CDATA[GET FITTING LID]]></JobOper_OpDesc>
<JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete>
<JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted>
</ELEC01_SOWaitingParts3>
<ELEC01_SOWaitingParts3>
<JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum>
<JobOper_OprSeq><![CDATA[90]]></JobOper_OprSeq>
<JobOper_OpCode><![CDATA[KIT F/L]]></JobOper_OpCode>
<JobOper_OpDesc><![CDATA[KIT FITTING LID]]></JobOper_OpDesc>
<JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete>
<JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted>
</ELEC01_SOWaitingParts3>
As you can see, the JobOper_JobNum is the same for each of the above (bear in mind this is only an extract, the full XML contains lots of different JobOper_JobNum's).
In the second line you can see 'JobOper_OprSeq' - 60, 70, 80, 90
However when the xml is converted into html via XSL, I only want to see the first entry for each JobOper_JobNum.
So in the above case, I only want the following to be displayed in my final output ...
<ELEC01_SOWaitingParts3>
<JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum>
<JobOper_OprSeq><![CDATA[60]]></JobOper_OprSeq>
<JobOper_OpCode><![CDATA[A/W]]></JobOper_OpCode>
<JobOper_OpDesc><![CDATA[ACID/WASH]]></JobOper_OpDesc>
<JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete>
<JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted>
</ELEC01_SOWaitingParts3>
I want this to be the case for ALL of the different JobOper_JobNum - I only want to see the first entry and they will always be output in sequential order (10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140 etc).
Any help would be massively aprpeciated.
Thanks.