Hi,
I've been trying to prove a concept now for what seems like an age. With the help of people on this forum I've managed to get the seating plan output on the screen as I'd like, but now I need to display X number of seats that are available next to each other. So if the user wants to book four seats next to each other on a row, i want to only output available seats that are in a group of four. explaining this badly i know.
I think i've managed to achieve what i want by hardcoding if statements, but I need to be able to use a param that will be passed in.
this is the if statement that i have at the moment
what i really need to be able to do is, something like "are there x number of seats available from this point on the row?"
I really can't think of anyway of doing this in xslt.
Any ideas?
TIA
Tony
I've been trying to prove a concept now for what seems like an age. With the help of people on this forum I've managed to get the seating plan output on the screen as I'd like, but now I need to display X number of seats that are available next to each other. So if the user wants to book four seats next to each other on a row, i want to only output available seats that are in a group of four. explaining this badly i know.
I think i've managed to achieve what i want by hardcoding if statements, but I need to be able to use a param that will be passed in.
this is the if statement that i have at the moment
Code:
<xsl:when test="((./seat_status[(position()+1)]=0))">
what i really need to be able to do is, something like "are there x number of seats available from this point on the row?"
I really can't think of anyway of doing this in xslt.
Any ideas?
TIA
Tony