Re: A proposal to restructure our top-level syntax

Henri,

I find your proposal very appealing, but the fact of loosing recursive
pipeline is too big a loss for me

Can we lighten this behaviour ?

Mohamed

On Nov 30, 2007 4:13 PM, Henry S. Thompson <ht@inf.ed.ac.uk> wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> 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:
>
> <p:pipeline>
>  ...
> </p:pipeline>
>
> is just an abbreviation for
>
> <p:pipeline-library>
>  <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-->
>  ...
>  </p:declare-step>
> </p:pipeline-library>
>
> 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.
>
> ht
> - --
>  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/<http://www.ltg.ed.ac.uk/%7Eht/>
> [mail really from me _always_ has this .sig -- mail without it is forged
> spam]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFHUCiQkjnJixAXWBoRAkUAAJ4vdIZltWvv2183DpRhQoExSHIDdwCcDnD4
> +3OaGPaiZ1alEIp0KPOVz9A=
> =U+UO
> -----END PGP SIGNATURE-----
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Saturday, 8 December 2007 08:40:59 UTC