- From: Norman Walsh <ndw@nwalsh.com>
- Date: Sat, 10 Apr 2010 14:47:20 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <m2y6gvxhzb.fsf@nwalsh.com>
Innovimax W3C <innovimax+w3c@gmail.com> writes: > Well.. I would continue to argue that p:identity is a special case > because, there is no difference in with respect to processing a > document or a sequence of document :-) I'm not asking you to argue one way or another, it's just a discrepancy that strikes me as odd. Consider this choose: <p:choose> <p:when test="p:value-available('filter-expr')"> <p:filter> <p:with-option name="select" select="$filter-expr"/> </p:filter> </p:when> <p:otherwise> <p:identity> <p:input port="source" select="/my/default/filter/expr"/> </p:identity> </p:otherwise> </p:choose> If the input document is a sequence, it fails if $filter-expr is defined and succeeds if it isn't. I don't think that's going to seem obvious to most users. Be seeing you, norm -- Norman Walsh <ndw@nwalsh.com> | There exist some evils so terrible and http://nwalsh.com/ | some misfortunes so horrible that we | dare not think of them, whilst their | very aspect makes us shudder; but if | they happen to fall on us, we find | ourselves stronger than we imagined; we | grapple with our ill luck, and behave | better than we expected we should.--La | Bruyère
Received on Saturday, 10 April 2010 18:47:56 UTC