- From: Innovimax W3C <innovimax+w3c@gmail.com>
- Date: Sat, 10 Apr 2010 21:00:57 +0200
- To: Norman Walsh <ndw@nwalsh.com>
- Cc: public-xml-processing-model-wg@w3.org
Fair enough... I forgot about empty sequence... Now I shut up Mohamed On Sat, Apr 10, 2010 at 8:47 PM, Norman Walsh <ndw@nwalsh.com> wrote: > 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 > -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 9 52 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 €
Received on Saturday, 10 April 2010 19:01:31 UTC