mco
asked on
Using environment variable from within XSLT
Hi,
I am new to XSLT.
Is it possible to use the value of a system environment variable (e.g. TEMP), from within XSLT?
I am new to XSLT.
Is it possible to use the value of a system environment variable (e.g. TEMP), from within XSLT?
ASKER
Could you give me a code example?
In which language? C#, VB, JScript, VBScript
On Which Side? Client Or Server?
Using What Technology? HTA, ASP, ASP.NET, COM (ActiveX)
On Which Side? Client Or Server?
Using What Technology? HTA, ASP, ASP.NET, COM (ActiveX)
ASKER
C++, client, COM (msxml3.dll)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One of the things that you will learn is NOT to re-invent the wheel. There are existing API calls that allow you to get system environment variables like Windows Scripting Host. XSLT is NOT a scripting language. It is not a procedural language.
::TIP::
1. Get the System Environment Variable.
2. Pass It To The Stylesheet
2a. External Values can be passed to Stylesheets either thru brute DOM Methods or via the AddParameter() Method of the IXSLProcessor (if you are using MSXML 3+)