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

RE: storing in non-existent folder?

From: <Toman_Vojtech@emc.com>
Date: Thu, 2 Jul 2009 04:03:18 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7871014848F@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>
> 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.

...and you would get the same behaviour with our XProc processor, too.
The specification is not clear about this.
Similar question arises wrt overwriting existing resources. Should
p:store overwrite existing files? In our implementation, it does.

One solution to this could be to add extension attributes to p:store
that would control the behavior of the step. XProc processors that don't
understand these attributes would simply ignore them and do whatever
their impl of p:store does.

But perhaps a better solution would be to use the steps from the
fileutils extension library (mkdir etc.)

Received on Thursday, 2 July 2009 08:04:56 UTC

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