Code: Select all
allproducts
stylesheets
src
product1
product1.xpr
product2
product2.xpr
I'd like to be able to have a variable, ${stylesheets}, that has the path to the stylesheets directory relative to the project folder. I've tried directly referencing ${pd} in my custom variable definition in the project file,
Code: Select all
<userEditorVariable>
<field name="name">
<String>${stylesheets}</String>
</field>
<field name="value">
<String>${pd}\..\..\stylesheets</String>
</field>
<field name="shortDescription">
<String>The stylesheets directory of the sandbox</String>
</field>
</userEditorVariable>
and using the xpath_eval construction method.
Code: Select all
<userEditorVariable>
<field name="name">
<String>${stylesheets}</String>
</field>
<field name="value">
<String>${xpath_eval(concat(${pd}, '\..\..\stylesheets'))}</String>
</field>
<field name="shortDescription">
<String>The stylesheets directory of the sandbox</String>
</field>
</userEditorVariable>
Neither seem to work, but perhaps I've got my number of .. steps in the path wrong. Is there a way to validate what a variable expands to in an editor viewer so you can more easily debug possible variable construction errors?