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

Re: For-each question

From: Alex Milowski <alex@milowski.org>
Date: Mon, 31 Jul 2006 08:44:57 -0700
Message-ID: <44CE2579.60401@milowski.org>
To: public-xml-processing-model-wg@w3.org

Jeni Tennison wrote:

> It seems tedious to me to have to (re)declare the schema and stylesheet 
> pipeline inputs as inputs for the for-each. The more inputs and 
> parameters we have, the more tedious it gets.

Personally, I find it easier to see what the output of the for-each is
without having to go hunt for it.

>>> 3. It's unlike iteration in other languages (you don't have to define 
>>> all the variables used within a for loop in, say, Java)
>> Unlike iteration in other languages, that input must be replayed for
>> each iteration.
> I don't understand what you mean by 'replayed'? You mean that behind the 
> scenes, the processor has to make copies of the other inputs? Why should 
> the user care about what the processor has to do behind the scenes?

Because users are concerned about the efficiency of processing and so
they'll need to know what the expected cost is with a certain operation.

--Alex Milowski
Received on Monday, 31 July 2006 15:46:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:40 UTC