This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Xalan and path problem
- From: Markus Schönhaber <mailing-cygwin at schoenhaber dot de>
- To: cygwin at cygwin dot com
- Date: Fri, 29 Sep 2006 15:41:47 +0200
- Subject: Re: Xalan and path problem
- References: <20060929134317.445dfb40@porschberg.osp-dd.de>
- Reply-to: cygwin at cygwin dot com
Thomas Porschberg wrote:
> we use Xalan on our UNIX/LINUX machines and I want now to the same on
> Cygwin. I installed Xerces+Xalan(the windows binaries).
>
> In our UNIX scripts the call to Xalan is:
>
> Xalan -o $RESULTFILE $XMLFILE $XSLFILE
>
> where $RESULTFILE, $XMLFILE and $XSLFILE are specified as
> UNIX-paths.
>
> That doesn't work under Cygwin I had to write:
>
> Xalan -o `cygpath -w $RESULTFILE` ...
>
> Of course I could now write
> if $cywin ; then
> Xalan -o `cygpath -w $RESULTFILE` ...
> else
> Xalan -o $RESULTFILE $XMLFILE $XSLFILE
> fi
>
> but I don't want change the script.
>
> Is there another way to solve the problem ?
You could create a script that cygpath-ifies the parameters and passes them to
a call to the actual Xalan executable, name that script "Xalan" and put it
somewhere into the PATH where it gets called instead of the actual Xalan
binary.
Regards
mks
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/