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

Re: A proposal to restructure our top-level syntax

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Fri, 30 Nov 2007 15:13:20 +0000
To: public-xml-processing-model-wg@w3.org
Message-ID: <f5b3aunhilr.fsf@hildegard.inf.ed.ac.uk>

Hash: SHA1

So the two things that you lose on my proposal are the ability to
write a single recursive pipeline (because <p:pipeline> is untyped, on
my proposal, so there's no way to call it), and the ability to import
a single pipeline document.

Following the programming language analogy which partly informed my
proposal, here's a further step, which doesn't change the proposal in
any detail, but solves those two problems:


is just an abbreviation for

 <p:declare-step type="main">
  <p:input port="!source" primary="yes"/> <!-- iff no primary input
                                                declared in the original-->
  <p:output port="!result" primary="yes"/> <!-- iff no primary output
                                                declared in the original-->

And we say that running a pipeline library defaults to running the
step whose type is 'main'.

So now you can write a single recursive pipeline (it has a type you
can use to call it with now, namely 'main'), and you can import single
pipelines, because they are _really_ libraries after all.

- -- 
 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, 30 November 2007 15:13:27 UTC

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