|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Filtering problem
Hi All,
Im stumped by an XSLT problem. I have a series of elements
(shown below). Im trying to building a report that groups these by status
type. I have three states submit, approved and complete. Each coming
one after the other respectively. I need to filter these into something
similar to the bottom XML layout. Basically if an item has been approved
it shouldnt appear in submit etc. This is easy enough, but I have to put
date restrictions on it. So if an item was approved, but it was after
$endDate then it should be included in submit or if an item is complete
but after the endDate, but it was approved during the date range then
include it in approved but not submit
Hope this makes sense
Input:
<item>
<statusHistory>
<status>
<type>
<date>
</status>
</statusHistory>
<itemDetails>
</itemDetails>
</item>
Desired Output:
<summary>
<complete>
<itemDetails/>
</complete>
<approved>
<itemDetails/>
</approved>
<submit>
<itemDetails/>
</submit>
</summary>
Thanks
Ryan Puddephatt
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








