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

p:pipeline and p:declare-step

From: Innovimax SARL <innovimax@gmail.com>
Date: Mon, 29 Dec 2008 22:21:37 +0100
Message-ID: <546c6c1c0812291321u54f19c6dvf556ceaf35ee013@mail.gmail.com>
To: "XProc WG" <public-xml-processing-model-wg@w3.org>
In the spec the prose says :

[[
All p:pipeline pipelines have an implicit *primary input
port<http://www.w3.org/XML/XProc/docs/langspec.html#dt-primary-input-port>
* named "source" and an implicit *primary output
port<http://www.w3.org/XML/XProc/docs/langspec.html#dt-primary-output-port>
* named "result". Any input or output ports that the p:pipeline declares
explicitly are *in addition* to those ports and may not be declared primary.
]]
Nothing is said about parameters input port

Few lines below you can read
[[

If a pipeline does not have a type then that pipeline cannot be invoked as a
step.

The p:pipeline element is just a simplified form of step declaration. A
document that reads:

<p:pipeline *some-attributes*>
  *some-content*
</p:pipeline>

can be interpreted as if it read:

<p:declare-step *some-attributes*>
  <p:input port='source' primary='true'/>
  <p:input port='parameters' kind='parameters' primary='true'/>
  <p:output port='result' primary='true'>

  *some-content*
</p:declare-step>

]]

It would be good to synchronize the prose and the example
And it would also be good to fix the sample by adding a slash at the end of
p:output

Mohamed


-- 
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 Monday, 29 December 2008 21:22:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 29 December 2008 21:22:18 GMT