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

p:for-each

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Wed, 19 Jul 2006 16:11:44 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87mzb5uzgf.fsf@nwalsh.com>
A for-each looks like:

  for-each := ($over, $select?, $label, with-output, {body})

Where $over identifies a stream over which the XPath expression in
$select should be applied. The body of the element is applied to each
node (or nodes) selected. The nodes are available as a a document
(with the label $label) to the body of the for-each.

The single with-output element (which must have the name 'result')
identifies which output from the steps in the body is to be considered
the output of each application.

The result of the entire step is the sequence of results obtained from
each application.

                                        Be seeing you,
                                          norm

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

Received on Wednesday, 19 July 2006 20:11:56 GMT

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