p:pipeline and p:declare-step

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 UTC