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

p:choose

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Sat, 29 Jul 2006 17:16:18 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87r7041599.fsf@nwalsh.com>
p:choose selects one branch based on an XPath expression.

<p:choose>
  <p:declare-input .../>
  <p:declare-output .../>

  <p:when test="...">
    {components}
  </p:when>

  ...

  <p:otherwise>
    {components}
  </p:otherwise>
</p:choose>

The declare-input associates an input a local port name. This input is
used as the context for the XPath expression in each when statement.
Each of the when's (and the otherwise) must assign outputs to the
declared outputs.

The output(s) of the selected branch will appear on the declared
output port(s) when the choose finishes.

It is an error if the choose has declared outputs and no p:when
matches and no p:otherwise is provided.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

Received on Saturday, 29 July 2006 21:16:33 GMT

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