I have a XSLT style sheet that produces a Hierarchal data structure for some reports that I create. This XSLT is very generic so I can supply any XML file and receive the same structured output. I need to expand this to provide Filtering of the data. I have a method of extracting all attributes from the structure and populate a dropdown as well as populating a second dropdown with values contained by the attribute selected in the first list. I need to be able to supply a filtering XSLT the name of the attribute and the value selected and then filter the XML based on these selections.
Is there a way to filter by matching attribute name to a parameter value AND the attribute value to a second parameter value?