W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2009

Re: storing in non-existent folder?

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 23 Jul 2009 15:34:31 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m21vo719dk.fsf@nwalsh.com>
Kevin Flynn <kevin@escenic.com> writes:
> In Calabash, the following:
>     <p:store name="save">
>       <p:with-option name="href" 
> select="concat($output-folder,'/',$file-stem,'.ext')"/>
>     </p:store>
> fails if the folder referenced by $output-folder does not already exist.
> 1 Is this an implementation issue, or is it "as specified".
> 2 If it is intended behavior, what is the recommended way around it? I 
> suppose I could use p:exec to run a shell command, but then it wouldn't 
> be platform-independent...

I decided to be consistent with Saxon's xsl:result-document strategy
and as of XML Calabash 0.9.14, the full path will be created if it (a)
it doesn't exist and (b) you've got permissions to do it.

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | Simplicity is always a virtue.--Edward
http://nwalsh.com/            | Abbey

Received on Thursday, 23 July 2009 19:35:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:48 UTC