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

For-each's select attribute

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 22 Dec 2006 15:06:49 +0000
Message-ID: <458BF489.5040603@jenitennison.com>
To: public-xml-processing-model-wg@w3.org

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 GMT

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