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

xsl:if or template?

Subject: xsl:if or template?
From: "BoJo Allen" <rallen@xxxxxxxxxxxx>
Date: Fri, 5 May 2000 09:15:36 -0700
xsl if or
I'm having trouble with the specifics on using XSL to format my data
properly.  The problem is that I need to display groups of like data.   I
have written functions that format the dates and times for me, but I am
having trouble only printing the like data once. For example, I am sorting
by the <Tracker_ID> and then the <Event_GMT>.  I want to then display the
Tracker_ID if it is unique followed by all the data for the specific
tracker.  I have been working with scripts, xsl:if and templates to try and
solve this. Any help would be greatly appreciated.
BoJo Allen

Sample data:
<EventData xmlns:dt="urn:schemas-microsoft-com:datatypes">
   <Event>
       <Event_GMT dt:dt="dateTime">2000-03-14T02:15:21</Event_GMT>
       <Description>Bob</Description>
       <Engineering>
                <Tracker_ID>1477</Tracker_ID>
        </Engineering>
   </Event>
   <Event>
       <Event_GMT dt:dt="dateTime">2000-03-14T23:12:32</Event_GMT>
       <Description>Joe</Description>
       <Engineering>
                <Tracker_ID>1477</Tracker_ID>
        </Engineering>
   </Event>
   <Event>
       <Event_GMT dt:dt="dateTime">2000-03-15T09:57:21</Event_GMT>
       <Description>Sam</Description>
       <Engineering>
                <Tracker_ID>1477</Tracker_ID>
        </Engineering>
   </Event>
   <Event>
       <Event_GMT dt:dt="dateTime">2000-03-14T10:11:47</Event_GMT>
       <Description>George</Description>
       <Engineering>
                <Tracker_ID>2255</Tracker_ID>
        </Engineering>
   </Event>
</EventData>


Desired output:
1477
       03-14-2000
                  2:15:21 AM - Bob
                  11:12:32 PM - Joe
      03-25-2000
                  9:57:21 AM - Sam
2255
       03-14-2000
                  10:11:47 AM - George


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.