Example of using variable

<oXygen/> general issues.
daliboris
Posts: 18
Joined: Thu Feb 11, 2010 5:00 pm

Example of using variable

Post by daliboris » Thu Jan 12, 2012 10:48 am

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: 2514
Joined: Tue May 17, 2005 4:01 pm

Re: Example of using variable

Post by adrian » Thu Jan 12, 2012 4:37 pm

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: 18
Joined: Thu Feb 11, 2010 5:00 pm

Re: Example of using variable

Post by daliboris » Tue Jan 24, 2012 11:04 pm

Thank you for youre example. It works.

Post Reply