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

RE: p:choose is poorly and/or incorrectly specified

From: <Toman_Vojtech@emc.com>
Date: Tue, 21 Apr 2009 04:43:35 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870F50977A@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>
> I wonder if this is a common enough problem that we ought to add a
> primary output port to p:error, documented as never producing any
> output.

Personally, I think this p:choose/p:when/p:error scenario may be rather
common, especially if you want to write a pipeline that checks its input
before it does something interesting/dangerous.

I also did something similar to this a couple of times:

<p:try>
  <p:group>
    <p:output port="result"/>

    <!-- do something that should produce exactly one doc -->
    ...
  </p:group>
  <p:catch>
    <p:error code="...">...</p:error>
    <p:identity>
      <p:input port="source">
        <p:empty/>
      </p:input>
    </p:identity>
  </p:catch>
</p:try>


Regards,
Vojtech
Received on Tuesday, 21 April 2009 08:44:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 21 April 2009 08:44:26 GMT