Basically I need to be able to pass a parameter into XSL from the url so I can use it to search through the XML file.
<xsl:template match="/">
<xsl:for-each select="tvguide/day/channel/programme[@id='...URLParameter...']">
<div>
...Program Details go here...
</div>
</xsl:for-each>
The above code is the search function in the XSL and im trying to make it so i can access this file with the URL which contains the parameter of the program id, ie "programme-details.html?programmeid=1".
The program ID will then be used to search through the XML programs and the rest is already working.
No comments:
Post a Comment