I am working on a web site where I click on a link and it will navigate to a detail page to show the detail information related to the link. I have created the detail page using a xslt template and all contents in the detail page are comming from a xml file. to filter out only the relevant data from xml, I thought of passing a variable through query string and declare it as a xslt parameter in the detail xslt page. But I have no idea whether there is a way to pass variables through query string to the xslt page. I am new to xslt so It is greatly appreciated if someone can tell how this can be done or whether there is another easy way to do this?
Could you give us some sample XML data and an idea of what you'd like to query. <ul> <xsl:if test="year > 1949"> <li> <xsl:value-of select="title"/> <xsl:value-of select="year"/> </li> </xsl:if> </ul> Are you looking to do something similar to this, i.e. querying the 'year' data?...
Thanks for your reply cubicaaron I just found out the way of doing it. actually my problem was getting a query string value to a xslt parameter. with some searching I figured out that its not possible only using xslt. Instead I had to use a server side language something like PHP to pass and assign the query string (url variable) value to xslt parameter. I was able to do this through dreamweaver.
Hi Peon, Could you please show me how you do query string (url variable) xslt parameter in dreamweaver? Thank you