Example of using variable

Oxygen general issues.
daliboris
Posts: 26
Joined: Thu Feb 11, 2010 5:00 pm

Example of using variable

Post by daliboris »

Hello, I can't find example of using system or environment variables.
First: what is the difference between "system" and "environment".
Second: how should be name of the variable formated.
Concrete example: I use Windows and I wan set path to the AltovaXML in Program Files folder, I want use Windows enviroment variable called %PROGRAMFILES%. How can I do that?

Thank you.
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Example of using variable

Post by adrian »

Hello,

I'm not sure of the context where you want to use editor variables(transformation scenario, external tool, etc). Can you please clarify?

"System variables" refers to Java system properties. I've logged a documentation issue to clarify this in the Oxygen manual.

For the PROGRAMFILES environment variable you ca use:
${env(PROGRAMFILES)}

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
daliboris
Posts: 26
Joined: Thu Feb 11, 2010 5:00 pm

Re: Example of using variable

Post by daliboris »

Thank you for youre example. It works.
Post Reply