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

Re: Proposed dynamic error: a select that doesn't select nodes

From: Innovimax SARL <innovimax@gmail.com>
Date: Fri, 1 Jun 2007 21:41:30 +0200
Message-ID: <546c6c1c0706011241t1ccf4594ub58aecd18704f73b@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org

hum....
for me a
   <p:input select="/div">
     <p:empty/>
   </p:input>

should give an empty sequence and not a dynamic error

I also agree that

   <p:input select="3 + 2">
     <p:empty/>
   </p:input>

should raise a dynamic error and even a static one because *IT WOULD
NEVER SELECT A NODE SET* whatever the input

Mohamed

On 6/1/07, Norman Walsh <ndw@nwalsh.com> wrote:
> I propose that a select expression on a p:input (or it's synonyms)
> which does not select a set of nodes is a dynamic error.
>
> In other words, you can't do this:
>
>   <p:input select="3+5"/>
>
> It follows, I think, that any use of a select expression on an input
> bound to p:empty is always going to raise this error. But I'm not
> inclined to add that as a static error.
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | Anger ventilated often hurries towards
> http://nwalsh.com/            | forgiveness; anger concealed often
>                               | hardens into revenge.--Edward G.
>                               | Bulwer-Lytton
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Friday, 1 June 2007 19:41:33 GMT

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