Using editorVariables in CSS
Posted: Wed Feb 22, 2017 1:42 pm
Hi everyone,
I use the Oxygen component. In the CSS file, I want to access, with an oxy_xpath, data stored in a XML file located in the framework directory.
I can do this with an absolute path :
But I would like to use editorVariables like ${frameworksDir} to avoid the absolutePath :
How can I do it ?
Thank you,
Johann
I use the Oxygen component. In the CSS file, I want to access, with an oxy_xpath, data stored in a XML file located in the framework directory.
I can do this with an absolute path :
Code: Select all
element{
content: oxy_xpath('doc("file:/absolute_path/data.xml")//XPATH');
}
Code: Select all
element{
content: oxy_xpath('doc(${frameworksDir})//XPATH');
}
Thank you,
Johann