I'm trying to set up an XSL:IF statement that only shows entries that have a node that falls between two values. Simple enough, right? It's just a if greater than and if less than. Problem is, instead of testing it against one node I need to test it against up to 52.
Let's say I have some XML that looks like this:
<container>
<entry>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
</entry>
</container>
Now say I'm given a range of 9–15. Because some of the nodes fall into that range I want to display that entry. But if I was given a range of 11–15 none of the nodes fit so I wouldn't want it displayed.
The problem is... I have absolutely no idea how you would do this. I know you can IF a single value but I can't think of a simple way to test each node.
By the way, this is all being done inside the latest stable release of the Symphony CMS.
[edit] The problem with the first two results is they display the ITEM nodes, what I'm looking for is to return only ENTRY nodes that have at least one ITEM node that matches. I'm not sure how any of the solutions would help this.