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

re p:iteration-source

From: James Fuller <james.fuller.2007@gmail.com>
Date: Tue, 15 Apr 2008 22:26:32 +0200
Message-ID: <a0ad8ffe0804151326x6b3afd86mb65d80e08cd4f0b5@mail.gmail.com>
To: public-xml-processing-model-comments@w3.org

in section 4.2.2 Example it illustrates the usage where the
p:iteration-source @select applies to the default input to the
for-each .... I think it would be useful to add some explicit text for
this scenario i would also add a bit more descriptive text to in
section 5.2 p:iteration-source e.g.

words to the effect of;

'Where p:iteration-source has no nested elements the xpath expression
in the @select applies to the primary input binding'

In addition, I would propose adding to p:iteration-source an attribute
that would throw an error if the @select matches nothing e.g.

  select? = XPathExpression
    (p:empty |
      (p:pipe |
       p:document |

where if @fail-if-empty is set to true (defaults to false) a dynamic
error is thrown if @select matches nothing.

cheers, Jim Fuller
Received on Tuesday, 15 April 2008 20:27:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:25 UTC