I want to get the URL parameter from the current page URL in my XSL and use it to test a condition in template xpath . Eg: <xsl:apply-templates select="//search-results/orders/order[@id = URL Parameter]" mode="tableContent"/>
I do not have control over the XML as its generated by the tool which am using.
I tried using JavaScript to get the parameter from URL and saving it in js variable in the XSL , but am not able to proceed on getting this variable value in that above xpath condition. Not sure if i have adopted the right approach .
No comments:
Post a Comment