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

RE: Difficult Grouping/Matching problem

Subject: RE: Difficult Grouping/Matching problem
From: "Kenny Akridge" <kenny@xxxxxxxxxxxxxxxxx>
Date: Fri, 26 Mar 2004 16:07:29 -0500
attendance block firstname only
BY the way, I am using .NET XslTransform.

-----Original Message-----
From: Kenny Akridge [mailto:kenny@xxxxxxxxxxxxxxxxx] 
Sent: Friday, March 26, 2004 4:05 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Difficult Grouping/Matching problem

I am trying to list out a number of columns with event dates in a header and
then place an 'X' in the cell that corresponds to the date for attendees of
the events.  
The XML is like this:

<ArrayOfAttendance xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Attendance>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-10T00:00:00.0000000-05:00</ClassDate>
    <Attend>YES</Attend>
  </Attendance>
  <Attendance>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-17T00:00:00.0000000-05:00</ClassDate>
    <Attend>NO</Attend>
  </Attendance>
  <Attendance>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-20T00:00:00.0000000-05:00</ClassDate>
    <Attend>YES</Attend>
  </Attendance>
  <Attendance>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-24T00:00:00.0000000-05:00</ClassDate>
    <Attend>YES</Attend>
  </Attendance>
  <Attendance>
    <FirstName>Jane</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-10T00:00:00.0000000-05:00</ClassDate>
    <Attend>YES</Attend>
  </Attendance>
  <Attendance>
    <FirstName>Jane</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-17T00:00:00.0000000-05:00</ClassDate>
    <Attend>YES</Attend>
  </Attendance>
  <Attendance>
    <FirstName>Jane</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-20T00:00:00.0000000-05:00</ClassDate>
    <Attend>NO</Attend>
  </Attendance>
  <Attendance>
    <FirstName>Jane</FirstName>
    <LastName>Doe</LastName>
    <ClassDate>2004-01-24T00:00:00.0000000-05:00</ClassDate>
    <Attend>YES</Attend>
  </Attendance>
</ArrayOfAttendance>

I want to produce HTML output like this:

Name		1/10/04	1/17/04
-------------------------------
John Doe	  X		  
Jane Doe	  X		  X

Name		1/20/04	1/24/04
-------------------------------
John Doe	  X		  X
Jane Doe			  X

This is assuming that I can only fit n number of dates on one line for a
printed report.

I am having a difficult time approaching this and I am tempted to give up
using XSL to handle this.

Any thoughts would help.  Thanks.

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.