[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Filtering problem

Subject: Filtering problem
From: Ryan Puddephatt <rpuddephatt@xxxxxxxxxxxx>
Date: Fri, 11 Nov 2005 14:16:04 +0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.