|
Subject: [xsl] Select distinct elements From: "Jakub Maly" <jakub_maly@xxxxxxxxx> Date: Thu, 22 Feb 2001 13:24:57 +0200 |
Hello,
I need to select events for text output, but only once each.
So the output should look like this:
11:00-14:00: Event 1
12:00-12:15: Event 2
15:00-15:30: Event 3
I don't know, how to select each event original, when the same event is in
input more times.
This is XML fragment:
<day dayName="4" day="15" month="2" year="2001">
<hour time="08:00" />
<hour time="09:00" />
<hour time="10:00" />
<hour time="11:00">
<event>
<name>Event 1</name>
<oid>1</oid>
<timeFrom>11:00</timeFrom>
<timeTo>14:00</timeTo>
</event>
</hour>
<hour time="12:00">
<event>
<name>Event 1</name>
<oid>1</oid>
<timeFrom>11:00</timeFrom>
<timeTo>14:00</timeTo>
</event>
<event>
<name>Event 2</name>
<oid>2</oid>
<timeFrom>12:00</timeFrom>
<timeTo>12:15</timeTo>
</event>
</hour>
<hour time="13:00">
<event>
<name>Event 1</name>
<oid>1</oid>
<timeFrom>11:00</timeFrom>
<timeTo>14:00</timeTo>
</event>
</hour>
<hour time="14:00" />
<hour time="15:00">
<event>
<name>Event 3</name>
<oid>3</oid>
<timeFrom>15:00</timeFrom>
<timeTo>15:30</timeTo>
</event>
</hour>
<hour time="16:00" />
</day>
Thanks a lot,
regards
Jakub.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] RE: document() function in MS, Michael Kay | Thread | Re: [xsl] Select distinct elements, Philip Strube |
| [no subject], mcarrasc mcarrasc | Date | Re: The top 10 limitations of XSLT , Francis Norton |
| Month |