p:for-each

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 UTC