I'm trying to produce a search filter that will work with an existing XML data file and I'm starting with trying to display just unique values from one of the nodes in a drop down list box.
An example of the XML file can be seen at... http://kirk.rapweb.co.uk/testing/filter/tidy/plain/products.xml
I've managed to use XSLT to display the XML in a more readable format... http://kirk.rapweb.co.uk/testing/filter/tidy/products.xml
The same data with filter applied... http://kirk.rapweb.co.uk/testing/filter/tidy/filter/products.xml
The values I would like to list in the 1st drop down list box filtered out... http://kirk.rapweb.co.uk/testing/filter/tidy/distinct/products.xml
All the data pulled into a HTML page... http://kirk.rapweb.co.uk/testing/filter/tidy/html/
I'm struggling to work out how to get the data from... http://kirk.rapweb.co.uk/testing/filter/tidy/distinct/products.xml into a HTML page drop down list box.
Can anyone offer advice, point me in the right direction or confirm that I'm on the right track?
The end result that I'm trying to achieve is to have 2 drop down boxes.
Drop Down List 1 would contain... Brakes, Exhaust, Lighting
Drop Down List 2 would contain...
- If Brakes were selected previously... Discs and Drums, Pads and Shoes.
- If Exhaust were selected previously... Centre, Rear.
- If Lighting were selected previously... Headlamps, Rear Lights.
Right now I'd just like to focus on populating Drop Down Box 1 with the data discussed above.