W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > June 2007

Re: defaulting

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Fri, 22 Jun 2007 20:23:32 +0100
To: Jeni Tennison <jeni@jenitennison.com>
Cc: public-xml-processing-model-wg@w3.org
Message-ID: <f5bzm2roksr.fsf@hildegard.inf.ed.ac.uk>

Hash: SHA1

Jeni Tennison writes:

> Richard & Henry wrote:
>> Further to discussion during yesterday's telcon, herewith a proposal
>> about input and output defaulting for pipelines.
> I like this. Just one thing:
>>   The default input of a step is bound to the default readable port if
>>   it is not otherwise bound;
>>   Non-default inputs are only bound to the default readable port if
>>   you call for that to happen by writing
>>    <p:input port="not-the-default-input-port"/>
> The other option would be to say that all inputs are bound to the
> default readable port if they're not explicitly bound, such that
> <p:pipeline>
>   <p:xslt1 />
> </p:pipeline>
> accepts an XSLT stylesheet input and runs it on itself (this is
> actually something I do quite a lot).
> It would make the defaulting story slightly easier to specify, since
> an omitted input would *always* be equivalent to an empty <p:input>
> element for that port.
> Is there any reason not to do that?

Yes.  Consider


I want that to validate based on what it finds in the document, not
try to use it as a schema to validate itself.

I don't think I'm just being selfish in saying that I suspect that's
likely to be a more common case than yours. . .

> Also, I'm assuming that the default readable port after a given step
> would be the default output of the previous step (in document order)?

Yes, that's already true.

- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Friday, 22 June 2007 19:23:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC