Reputation: 75
Sample XML:
<weci:Leave_of_Absence weci:isDeleted="1">
<weci:Leave_Start_Date>2024-04-09-07:00</weci:Leave_Start_Date>
<weci:Leave_Last_Day_of_Work>2024-04-08-07:00</weci:Leave_Last_Day_of_Work>
<weci:Leave_of_Absence_Type>NoPayLeave</weci:Leave_of_Absence_Type>
</weci:Leave_of_Absence>
<weci:Leave_of_Absence weci:isAdded="1">
<weci:Leave_Start_Date>2024-04-11-07:00</weci:Leave_Start_Date>
<weci:Leave_End_Date>2024-04-09-07:00</weci:Leave_End_Date>
<weci:First_Day_of_Work>2024-04-11-07:00</weci:First_Day_of_Work>
<weci:Leave_Last_Day_of_Work>2024-04-08-07:00</weci:Leave_Last_Day_of_Work>
<weci:Leave_of_Absence_Type>NoPayLeave</weci:Leave_of_Absence_Type>
</weci:Leave_of_Absence>
<weci:Leave_of_Absence>
<weci:Leave_Start_Date>2024-04-29-07:00</weci:Leave_Start_Date>
<weci:Leave_Last_Day_of_Work>2024-04-28-07:00</weci:Leave_Last_Day_of_Work>
<weci:Leave_of_Absence_Type>NoPayLeave</weci:Leave_of_Absence_Type>
</weci:Leave_of_Absence>
Expected Output: 2024-04-29-07:00
If this code is used, it returns all the dates.
<xsl:value-of select="weci:Effective_Change/weci:Leave_of_Absence/weci:Leave_Start_Date"/>
Wrong Output: 2024-04-09-07:00 2024-04-11-07:00 2024-04-29-07:00
Thank you.
Upvotes: 0
Views: 36