I am working with the following XML structure.
<File>
<Record>
<ID>01234</ID>
<Description>Sample description</Description>
<StartDate>2021-01-29</StartDate>
<EndDate>2021-02-02</EndDate>
</Record>
<Record>
<ID>56789</ID>
<Description>Sample description</Description>
<StartDate>2021-02-03</StartDate>
<EndDate>2021-02-06</EndDate>
</Record>
I need to create a Record element for each date in between, and including, the given StartDate and EndDate. My resulting XML needs to look like the following.
<File>
<Record>
<ID>01234</ID>
<Description>Sample description</Description>
<EventDate>2021-01-29</EventDate>
</Record>
<Record>
<ID>01234</ID>
<Description>Sample description</Description>
<EventDate>2021-01-30</EventDate>
</Record>
<Record>
<ID>01234</ID>
<Description>Sample description</Description>
<EventDate>2021-01-31</EventDate>
</Record>
<Record>
<ID>01234</ID>
<Description>Sample description</Description>
<EventDate>2021-02-01</EventDate>
</Record>
<Record>
<ID>01234</ID>
<Description>Sample description</Description>
<EventDate>2021-02-02</EventDate>
</Record>
<Record>
<ID>56789</ID>
<Description>Sample description</Description>
<EventDate>2021-02-03</EventDate>
</Record>
<Record>
<ID>56789</ID>
<Description>Sample description</Description>
<EventDate>2021-02-04</EventDate>
</Record>
<Record>
<ID>56789</ID>
<Description>Sample description</Description>
<EventDate>2021-02-05</EventDate>
</Record>
<Record>
<ID>56789</ID>
<Description>Sample description</Description>
<EventDate>2021-02-06</EventDate>
</Record>
Research I've done thus far hasn't given me much and, given my XSLT knowledge is severely lacking, I'd greatly appreciate any assistance. My preference would be not to use a recursive function (possibly XSLT 3.0??) but at this point I'll go with anything.
Thank you.