Melange
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=da tavalue"
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?
For example:
URL = "xmlfile.xml?paramvalue=da
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
a grade b for a full answer is ridiculous. bl from now on...
i still get an jscript exception , can someone please tell me why
JScriptException
----------------
Function expected
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!!!
Still, this is a cool, easy to understand solution to the problem, thank you!!!