Link to home
Start Free TrialLog in
Avatar of Melange
MelangeFlag for United States of America

asked on

Pass parameter to XSL stylesheet

Is it possible to pass a parameter from a URL to an XSL stylesheet via an XML file?

For example:

URL = "xmlfile.xml?paramvalue=datavalue"

and the XML file references the stylesheet "xslfile.xsl"

can xslfile.xsl read the value from paramvalue and then base its formatting on the value?
ASKER CERTIFIED SOLUTION
Avatar of b1xml2
b1xml2
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
a grade b for a full answer is ridiculous. bl from now on...
Avatar of PrithivTV
PrithivTV

i still get an jscript exception , can someone please tell me why

JScriptException
----------------
Function expected
I was looking for an XSLT-native way of getting parameters from the URL, but I guess there isn't one...
Still, this is a cool, easy to understand solution to the problem, thank you!!!