URL variables

Here should go questions about transforming XML with XSLT and FOP.
TMiles
Posts: 9
Joined: Fri Jan 20, 2023 1:05 am

URL variables

Post by TMiles »

I am using the same folder structure for a number of projects, and want to further automatise the transformation process using URL variables.

The key files will always be located in these folders:
Project/input/entries.xml
Project/input/transformation.xsl
Project/output/booklet.pdf


I can express the location of the .xsl file in its 'sibling' relation to the .xml file as:
${cfd}/transformation.xsl

How can I express the location of the output .pdf file in its 'cousin' relation to the .xml file?
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: URL variables

Post by Radu »

Hi,
The transformation scenario edit dialog has an "Output" tab, why not use the same "${cfd}" editor variable in the "Save as" field there? Something like
"${cfd}/${cfn}.pdf" for example.

https://www.oxygenxml.com/doc/versions/ ... ables.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
TMiles
Posts: 9
Joined: Fri Jan 20, 2023 1:05 am

Re: URL variables

Post by TMiles »

Thank you for your suggestion.

My solution has been to create formal projects and set the output destination as:
${pd}/online/concepts.html
Post Reply