I'm using XSLT1.0 and can't use any extensions. I have a node set and need to find all the elements in another node set that contain the values in the first and list them as related nodes.
The example below is a bit contrived, as the XML I'm working with is very large and contains confidential data so I made up some data.
In example in the following XML I am processing the sets. When I get to set_no 1 I find out that there are sub-sets 1,2 & 3. I then need to find and list in sub_sec order, all the book/chapter/section/sub_section/sub_sec elements, whose sec_no is in 1,2,3 (sets/set1/sub_set values)
So my result should be:
In SQL, it would be an IN clause
<?xml version="1.0" encoding="UTF-8"?>