[sc34wg3] TMQL: Scope and tuple sequences

Robert Barta rho at devc.at
Fri Nov 9 10:32:49 EST 2007


On Fri, Nov 09, 2007 at 04:08:07PM +0100, Lars Heuer wrote:
> >     [O] boolean-primitive ::= @ anchor
> >                           ==> . @ == anchor
> >                          (==> . >> scope == anchor)
> [...]
> > The following query seems to be invalid:
> 
> >     (a) john-lennon / homepage[@en, private]
> 
> Do the TMQL editors think, that the shortcut can be changed in a way,
> that the query (a) is valid (automatically expand it to
> "... [.>> scope == en & .>>scope == private]")?

Since scope is a not well-used and not well-understood feature, I
would tend more to have the query author be fully in charge, i.e. the
language should allow/force to be VERY EXPLICIT _what_ should happen:

   john-lennon / homepage[@en, private]

I would rather write as

   john-lennon / homepage [@en & @private]

Not much longer and there is no doubt what should happen.

\rho



More information about the sc34wg3 mailing list