Re: Ideas for future XProc versions

Le 10/03/2011 17:04, Tony R. a écrit :
> Hello everyone!

Hello,

> *****
> <!--
>     ALTERNATE SYNTAX FOR p:pipe (pipe() FUNCTION)
> ================================================================= -->
> *<input *port = "source" href = "pipe('step-name','port-name')" */> *
> ***<!--    defaults to primary output    -->* **
> ****<input * port = "source"  href = "pipe('step-name')" */> **

This doesn't look like an improvement.
With the XML syntax, your favorite editor can suggest the name of the 
port and of the step. Your editor may also provides color highlighting 
for the attributes' name and value, which makes the pipe's step and port 
more explicit.

> <!--
>     ALTERNATE SYNTAX FOR p:empty (empty() FUNCTION)
> ================================================================= -->
> *<input *  port = "source"   href = "empty()" */> *
> <!--    …or…    -->
> *<input *  port = "source"   empty = "true" */> *

I would use
<p:input port="source"/>

If the input is empty, well, just make it an empty XML element (I still 
don't understand why the spec didn't allow that :)).

-- 
Regards,
Olivier Jeulin

Received on Friday, 11 March 2011 07:07:57 UTC