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

Compound steps with empty subpipelines

From: <Toman_Vojtech@emc.com>
Date: Wed, 16 Jan 2008 05:20:31 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC787095D0032@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

Hi all,

I wonder if empty subpipelines are allowed in compound steps such as
p:for-each, p:catch/p:when, p:group, or p:pipeline? If so, what is the
semantics? The schema allows it, but the specification does not mention
this possibility (unless I overlooked something).

I see three options here:

1. Empty subpipelines are not allowed
2. Empty subpipelines are allowed and they are effectively equivalent to
the p:identity step
3. Empty subpipeline are allowed and are really empty (no data is
processed, no data is generated)

I myself would go for option 1 or 2.

Option 1 would be cleaner, I think, but you would have to be more
explicit when authoring the pipelines. Option 2, on the other hand,
would allow for some possibly useful default behaviour such as:

<!-- identity pipeline -->


<!-- p:for-each does p:unwrap -->
<p:for-each match="chapter">
  <p:output port="result"/>

What do you think?

Received on Wednesday, 16 January 2008 10:17:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:25 UTC