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

The default readable port in a for-each?

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 28 Oct 2008 07:08:22 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2wsftht95.fsf@nwalsh.com>
Consider:

  <p:for-each>
    <p:identity name="first"/>
    <p:identity name="second"/>
  </p:for-each>

The description of p:for-each says:

  The environment inherited by the contained steps of a p:for-each is
  the inherited environment with these modifications:
    * The port named “current” on the p:for-each is added to the
      readable ports.
    * The port named “current” on the p:for-each is made the default
      readable port.

In the case of the identity step named "first", this clearly has the
desired consequence: first reads the current port of the loop.

In the case of the identity step named "second", to what is the
"source" port bound?

I think our spec currently says that it's bound to the current port of
the loop, but I'm not sure that's what we want.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Language is by its very nature a
http://nwalsh.com/            | communal thing; that is, it expresses
                              | never the exact thing but a
                              | compromise--that which is common to
                              | you, me, and everybody.--T. E. Hulme

Received on Tuesday, 28 October 2008 11:27:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 October 2008 11:27:27 GMT