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 GMT

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