B
Boris
Hi,
I have a question regarding XSLT . Is it possible to output elements
in an XML between two values.
Here is an XML example of my data :
<root>
<stations>
<station>
<name>A</name>
<dep>05:25</dep>
<pos>1</pos>
<id>56</id>
</station>
<station>
<name>B</name>
<dep>06:25</dep>
<pos>2</pos>
<id>35</id>
</station>
<station>
<name>c</name>
<dep>07:25</dep>
<pos>3</pos>
<id>78</id>
</station>
<station>
<name>D</name>
<dep>08:25</dep>
<pos>4</pos>
<id>134</id>
</station>
****
****
</stations>
<start_station>
<id>35</id>
</start_station>
<end_station>
<id>78</id>
</end_station>
</root>
My aim si to output all those <station> elements that are between
<start_station><id> and
<end_station><id> values. I tried with <xsl:variable> but it did not
work.
Any help will be very apriciated.
Thank you,
Boris
I have a question regarding XSLT . Is it possible to output elements
in an XML between two values.
Here is an XML example of my data :
<root>
<stations>
<station>
<name>A</name>
<dep>05:25</dep>
<pos>1</pos>
<id>56</id>
</station>
<station>
<name>B</name>
<dep>06:25</dep>
<pos>2</pos>
<id>35</id>
</station>
<station>
<name>c</name>
<dep>07:25</dep>
<pos>3</pos>
<id>78</id>
</station>
<station>
<name>D</name>
<dep>08:25</dep>
<pos>4</pos>
<id>134</id>
</station>
****
****
</stations>
<start_station>
<id>35</id>
</start_station>
<end_station>
<id>78</id>
</end_station>
</root>
My aim si to output all those <station> elements that are between
<start_station><id> and
<end_station><id> values. I tried with <xsl:variable> but it did not
work.
Any help will be very apriciated.
Thank you,
Boris