I have a problem.
I have an XML file that contains information about 100 courses.
I have an XSL file that nicely displays the list of 100 courses.
But what if I want to only display 1 course. Can I pass a parameter to the XSLT file to tell it to only display "ENGL 100" ?
The XML looks something like this:
<document>
<menu>
<item>
<name>MTH 300</name>
<brief>Mathematics Skill Development</brief>
<description>A course in the fundamentals of ...</description>
</item>
<item>
<name>MTH 301</name>
<brief>Basic Algebra</brief>
<description>An introduction to algebra, ...</description>
</item>
...
I know I could write an XSLT file called "eng100.xsl" to loop through the XML and display only ENG 100 but I don't want to have to write dozens of these files.
The XML is dynamic and I am able to control it. I want the XSLT file to be static and never change.
Is there any way to pass parameters into the XSLT?