RE: top-level location-path context dependencies
"Michael Rys" <[email protected]>
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Message-ID | <EB0A327048144442AFB15FCE18DC96C702A7D608@RED-MSG-31.redmond.corp.microsoft.com> |
The problem with input() is that its type is basically item* which makes it a function that is hard to interoperate over or give more specific static type information. With a variable, you will be able to know more since you have it added to the static context and the dynamic context... Michael > -----Original Message----- > From: Jason Hunter [mailto:[email protected]] > Sent: Sunday, April 18, 2004 11:20 AM > To: Michael Rys > Cc: Howard Katz; [email protected] > Subject: Re: top-level location-path context dependencies > > Michael Rys wrote: > > > In XQuery, the solution is very simple if you make it explicit: > > > > Bind a variable to the sequence. > > The other solution is to bring back input() from the May 2003 draft. > That's actually more elegant. > > -jh-