Draw time limit with xslt 2.0 help - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Draw time limit with xslt 2.0 help

Hi,

I have a multiple xslt process.

I would like to divide a group, for example the party that start between
00:00:00 - 10:00:00 called as "Group A"
10:00:00 - 14:00:00 will call as "Group B"
or 14:00:00 - 20:00:00 will call as "Group C"

and I would like to record the "number" attribute where is start and end the party_group element can be anywhere, doesn't have to be at the beginning.

I'm also not sure how to do if time gt than 10:00:00 and less than 14:00:00 :confused:

So I was thinking to create another variable including the "start" element within phase1, therefore I can group by "start" date after I created the "number" then remove "start" element to get the final result. Not sure how to remove the element though :confused:

Will this be possible to do? I'm confused how to keep the start and end number. I hope someone can give me some tips. Thanks so much

Here is my input
[CODE]



dance party
80s
2009-12-01T00:28:30


cocktail party
Flower Garden
2009-12-01T10:09:34


cocktail party
Prewedding party
2009-12-01T14:30:34


kids party
Fairy Party
2009-12-01T20:00:00


kids party
Animals Party
2009-12-01T20:05:00



[/CODE]

I would like my final result look like this
[CODE]





80s


Flower Garden


Prewedding party



Fairy Party



Animals Party


[/CODE]

I have a multi phase xslt, the reason is so that I can put the number.

phase1.xslt
[CODE]




1.1





























my comment













[/CODE]

my phase 1 result before having "number" attribute
[CODE]


80s
2009-12-01T00:28:30


Flower Garden
2009-12-01T10:09:34


Prewedding party
2009-12-01T14:30:34



Fairy Party
2009-12-01T20:00:00



Animals Party
2009-12-01T20:05:00


[/CODE]

phase2.xslt
[CODE]



















[b][color=Blue][/color][/b]








[b][color=Blue][/color=Blue][/b]


















[/CODE]

data2 result. after I generate the number.
[CODE]


80s
2009-12-01T00:28:30


Flower Garden
2009-12-01T13:09:34


Prewedding party
2009-12-01T13:30:34



Fairy Party
2009-12-01T20:00:00



Animals Party
2009-12-01T20:05:00


[/CODE]

Comments

Sign In or Register to comment.