Transformation Output File Paths are platform-specific

Here should go questions about transforming XML with XSLT and FOP.
sarcanon
Posts: 39
Joined: Mon Aug 24, 2009 11:42 pm

Transformation Output File Paths are platform-specific

Post by sarcanon »

Hello.

Using OxygenXML 21.0, I move frequently back and forth between Windows on my desktop and Mac OS on my laptop. One annoying problem I cannot figure out how to get around is that Oxygen appears to save output file paths in XSLT transformation scenarios in a platform-specific manner.

For instance, assume I specify a relative output path (Save as) on Windows, e.g., ${pd}\..\output\exports\foo.xml. I then move to my laptop and open the same project file, the path retains the Windows directory delimiters, storing the result file using the Windows delimiters, and thus with the wrong name and in a path not intended.

So, my question is, is it possible for Oxygen XML to automatically translate the directory delimiters in a platform-aware manner, so that the output file ends up in the correct location?

Thank you.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Transformation Output File Paths are platform-specific

Post by Radu »

Hi,

When specifying output paths you should always use "/" as it works both on Windows and Mac/Linux. So specify the paths something like:

Code: Select all

${pd}/../output/exports/foo.xml
and the scenario should work as well on Mac as it does on Windows.
I will add an internal issue on our side to automatically save the path with the proper separators so that the project scenarios can be used on any platform.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
csquires
Posts: 10
Joined: Wed May 02, 2018 8:29 pm

Re: Transformation Output File Paths are platform-specific

Post by csquires »

I'm having the same issue with the responsive webhelp output on Linux, and my output is set to ${cfd}/temp/${cfn} (my publish template location is set to ${pd}/publish_template/lgc/lgcblack). Since I generate the output on Windows but our end users are on both Linux and Windows. On linux the logo in the header does not show up because the path it points to is

Code: Select all

oxygen-webhelp\template\img/LEFT_RGB.png

All other links to items in my publishing template use the generic path except for the path to the logo and favicon. For example my opt file has:

Code: Select all

<resources>
            <css file="master.css"/>
            <css file="lgc_black.css"/>
            <css file="lgc_topic.css"/>
            <logo file="LEFT_RGB.png"/>
            <favicon file="img/halicon.png"/>
            <fileset>
                <include name="img/**/*"/>
                <exclude name="img/**/.svn"/>
                <exclude name="img/**/.git"/>
            </fileset>
        </resources>     
The style sheets in the output head show up correctly:

Code: Select all

oxygen-webhelp/template/master.css?buildId=2018122203
oxygen-webhelp/template/lgc_black.css?buildId=2018122203
oxygen-webhelp/template/lgc_topic.css?buildId=2018122203
but the logo and favicon do not:

Code: Select all

oxygen-webhelp\template\img/LEFT_RGB.png
oxygen-webhelp\template\img/halicon.png
Is there a way I can fix this so the paths for the logo is correct?

Thanks,
Carolyn
ionela
Posts: 400
Joined: Mon Dec 05, 2011 6:08 pm

Re: Transformation Output File Paths are platform-specific

Post by ionela »

Hi Carolyn,

Thank you for your feedback.

I confirm this path issue is a bug in the current WebHelp implementation. The problem is already logged to our issue tracking tool in order to be analyzed by our development team. I have added your comments to it.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
csquires
Posts: 10
Joined: Wed May 02, 2018 8:29 pm

Re: Transformation Output File Paths are platform-specific

Post by csquires »

Thanks for the quick response. I'll have to add a script to fix it after the output generates.

Carolyn :)
Post Reply