W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > January 2008

Default bindings for non-primary inputs

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 25 Jan 2008 11:58:59 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2fxwlet9o.fsf@nwalsh.com>
This is legal:

    <p:input port='stylesheet'>
      <p:document href="someURI"/>

The primary input 'source' will automatically be bound to the default
readable port. The primary output 'result' will presumably get bound

This is not legal:


It's not legal because there's no binding for the 'stylesheet' input
and the stylesheet input isn't a primary input.

This is legal:

    <p:input port='stylesheet'/>

The stylesheet port is now named but no binding is provided. In this
case, the port will automatically get bound to the default readable

I think I used to think that providing default bindings for that last
case was easy to understand. Now I'm not so sure.

Would it be simpler to just say that non-primary inputs must always
have explicit bindings?

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | A complex system that works is
http://nwalsh.com/            | invariably found to have evolved from a
                              | simple system that worked.--J. Gall

Received on Friday, 25 January 2008 16:59:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:25 UTC