- From: Geert Josten <geert.josten@gmail.com>
- Date: Thu, 27 Mar 2014 10:31:25 +0100
- To: "'Florent Georges'" <fgeorges@fgeorges.org>, "'Gioele Barabucci'" <gioele@svario.it>
- Cc: "'XProc Dev'" <xproc-dev@w3.org>
Yes, works. Checked it, and added it as answer on stackoverflow as well: http://stackoverflow.com/questions/22645973/source-port-with-default-fallbac k-value/22683299#22683299 Cheers > -----Oorspronkelijk bericht----- > Van: fgeorges@gmail.com [mailto:fgeorges@gmail.com] Namens Florent > Georges > Verzonden: woensdag 26 maart 2014 15:03 > Aan: Gioele Barabucci > CC: XProc Dev > Onderwerp: Re: Source port with default fallback value? > > On 26 March 2014 14:32, Gioele Barabucci wrote: > > Hi, > > > * if a URL is provided on the command line using `-isource=foo.xml`, then > > the document at that URL is used as the source document; > > * if no URL is provided, then the document `default.xml` should be used. > > Unless I forgot something obvious, you can simply declare the input > port with a document, and if you set one on the command line, it will > override it: > > <p:declare-step version="1.0"> > <p:input port="source"> > <p:document href="default.xml"/> > </p:input> > ... > </p:declare-step> > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/
Received on Thursday, 27 March 2014 12:20:55 UTC