- From: Imsieke, Gerrit, le-tex <gerrit.imsieke@le-tex.de>
- Date: Thu, 15 Jun 2017 00:08:35 +0200
- To: xproc-dev@w3.org
Hans,
I just added pxf:info it to a pipeline that I just shared with Achim
(that was built in order to test whether Calabash and Morgana are able
to access bindings in p:viewport/@match):
https://subversion.le-tex.de/common/presentations/2017-06-11_xmllondon_xproc/samples/xpl/extract-xml-from-zip.xpl
The line
<p:import href="http://exproc.org/proposed/steps/file"
use-when="p:system-property('p:product-name') = 'MorganaXProc'" />
imports the pxf:* steps. If you intend to use only Morgana, you can omit
@use-when.
I also inserted a p:choose to demonstrate how you can deal with
non-existent or inaccessible files.
Gerrit
On 6/14/17 11:26 PM, Hans Hübner wrote:
> Hi Achim,
>
> are the exproc.org <http://exproc.org> steps available in MorganXProc?
>
> -Hans
>
> On Wed, Jun 14, 2017 at 7:00 PM, Achim Berndzen
> <achim.berndzen@xml-project.com <mailto:achim.berndzen@xml-project.com>>
> wrote:
>
> Hi Hans,
>
> what about using pxf:info
> (http://exproc.org/proposed/steps/fileutils.html
> <http://exproc.org/proposed/steps/fileutils.html>). It returns
> informations about a file and a file, that is readable is supposed
> to exist.
> Not sure, whether this exactly fits your needs, but I use this step
> to test for existing files.
>
> Greetings from Wolfenbüttel,
> Achim
>
> ------------------------------------------------
> Achim Berndzen
> achim.berndzen@xml-project.com <mailto:achim.berndzen@xml-project.com>
>
> http://www.xml-project.com
>
>
>
>
> > Am 14.06.2017 um 19:40 schrieb Hans Hübner
> <hans.huebner@lambdawerk.com <mailto:hans.huebner@lambdawerk.com>>:
> >
> > Hi,
> >
> > in one of my pipelines, I want to generate certain files only if
> they do not already exist. It seems, though, that there is no way
> to instruct p:store not to overwrite existing files, and there also
> seems to be no way to query for the existence of a file using plain
> XProc (or MorganaXProc, for that matter). Has anyone of you ever
> run into such a requirement and found a nice and small solution?
> >
> > Thanks,
> > Hans
> >
> > --
> > LambdaWerk GmbH
> > Oranienburger Straße 87/89
> > 10178 Berlin
> > Phone: +49 30 555 7335 0 <tel:%2B49%2030%20555%207335%200>
> > Fax: +49 30 555 7335 99 <tel:%2B49%2030%20555%207335%2099>
> >
> > HRB 169991 <tel:169991> B Amtsgericht Charlottenburg
> > USt-ID: DE301399951
> > Geschäftsführer: Hans Hübner
> >
> > http://lambdawerk.com/
> >
> >
>
>
>
>
> --
> LambdaWerk GmbH
> Oranienburger Straße 87/89
> 10178 Berlin
> Phone: +49 30 555 7335 0
> Fax: +49 30 555 7335 99
>
> HRB 169991 B Amtsgericht Charlottenburg
> USt-ID: DE301399951
> Geschäftsführer: Hans Hübner
>
> http://lambdawerk.com/
>
>
--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit.imsieke@le-tex.de, http://www.le-tex.de
Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930
Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler
Received on Wednesday, 14 June 2017 22:09:16 UTC