For-each's select attribute

Hi,

What's the difference between:

<p:for-each name="chapters" select="//chapter">
   <p:input port="source">
     <p:document href="http://example.org/docbook.xml"/>
   </p:input>
   ...
</p:for-each>

and

<p:for-each name="chapters">
   <p:input port="source" select="//chapter">
     <p:document href="http://example.org/docbook.xml"/>
   </p:input>
   ...
</p:for-each>

?

If there isn't a difference, given that the second one has to be 
supported (for consistency with <p:input> elsewhere), why allow the 
first one?

Cheers,

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com

Received on Friday, 22 December 2006 15:06:59 UTC