Source port with default fallback value?

Hello,

I was wondering whether it was possible to create a p:pipeline that 
works both when a "-isource" argument is given on the command line and 
when it is not.

The logic should be like this:

* 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.

How can I obtain this behaviour in XProc?

Regards,

-- 
Gioele Barabucci <gioele@svario.it>

Received on Wednesday, 26 March 2014 13:44:38 UTC