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

Re: Defaulting pipeline inputs and outputs

From: Innovimax SARL <innovimax@gmail.com>
Date: Thu, 9 Aug 2007 23:29:40 +0200
Message-ID: <546c6c1c0708091429p5aa6338dt18fb7c7df5996f66@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org

On 8/9/07, Norman Walsh <ndw@nwalsh.com> wrote:
> / "Innovimax SARL" <innovimax@gmail.com> was heard to say:
> | Let's give some troubling example
> |
> | <p:pipeline>
> |   <p:xslt/>
> | </p:pipeline>
> |
> | what is supposed this one to be equivalent to ?
> | How many implicit inputs are generated ?
>
> We've already answered these questions. That pipeline isn't valid.
> Only the primary input port (or primary output port) is ever
> implicitly created.
>
> In the case of an input port, it's created so that it can be
> implicitly connected to the primary input port of the first step if
> and only if the first step has one.
>
> In the case of an output port, it's created so that it can be
> implicitly connected to the primary output port of the last step if
> and only if the last step has one.
>
> The p:xslt step has a second (non-primary) input. That input *has* to
> be explicitly bound. Non-primary inputs are never implicitly bound,
> either to implicitly created pipeline inputs or to the primary output
> of preceding steps.
>
> | Now that we have parameter ports it seems more and more unlikely to be
> | fully manageable by users (may I recall than nothing forbid an input
> | of kind="document" to be connected to an input of kind="parameter"
>
> The vast majority of users are just going to ignore parameter inputs.
> They're going to just work.
>

Thanks for the clarification but what should be the interpretation of
this pipeline ?
<p:pipeline>
  <p:option name="operation"/>
  <p:choose>
    <p:when test="$operation = 'parameters'">
      <p:parameters/>
    </p:when>
    <p:when test="$operation = 'xslt'">
      <p:xslt>
        <p:input port="stylesheet"/>
          <p:document href="stylesheet.xsl"/>
        </p:input>
      </p:xslt>
    </p:when>
    <p:when test="$operation = 'xslfo'">
      <p:xsl-formatter uri="result.pdf"/>
    </p:when>
  </p:choose>
</p:pipeline>


-- 
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 Thursday, 9 August 2007 21:29:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:54 GMT