Subject: Re: [xsl] Saxon unix script command line not finding stylesheet even though it exists From: "Wolfgang Laun wolfgang.laun@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 14 Nov 2014 16:12:45 -0000 |
On 13 November 2014 22:51, Catherine Wilbur cwilbur@xxxxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > What would cause the following error to occur > > Stylesheet file -xsl:/usr/local/finesrv/erp/jdedwardsoneworld/cron/ > *LibrXML2CSV_stylesheet.xsl* does not exist > > when I call the Saxon processor. The stylesheet file actually exists in > the directory specified. > > Is it because I have not done the following to my stylesheet as specified > on listserv yesterday? > $ chmod ugo+x LibrXML2CSV_stylesheet.xsl > The chmod was suggested to be applied to a shell script, not the xsl file. To debug, use lines echo $FinesrvCronDir/LibrXML2CSV_stylesheet.xsl ls -l $FinesrvCronDir/LibrXML2CSV_stylesheet.xsl preceding the invocation of the XSL transformation and see what this produces: it should show the correct full pathname and display all file attributes. It is possible that the user executing the transformation does not have execute permission on one of the directories on the path leading to the xsl file. Then saxon would report Stylesheet file /foo/bar/blech.xsl does not exist "Execute permission" for a directory means that you can cd there and access files in or below that directory. Here's the ls -ld for my /tmp directory: $ ls -ld /tmp drwxrwxrwt 11 root root 4096 Nov 14 17:04 /tmp The three 'x' indicate "execute permission" for the owner (root), users of group root and all other users, respectively. HTH -W
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Saxon unix script command, Bridger Dyson-Smith | Thread | [xsl] Saxon unix script command lin, Catherine Wilbur cwi |
Re: [xsl] Saxon unix script command, Bridger Dyson-Smith | Date | [xsl] Saxon unix script command lin, Catherine Wilbur cwi |
Month |