On Wed, Jan 8, 2014 at 12:32 PM, Ihe Onwuka <[email protected]> wrote:

>
> On Wed, Jan 8, 2014 at 12:26 PM, David Carlisle <[email protected]> wrote:
>
>> On 08/01/2014 12:17, Ihe Onwuka wrote:
>>  list of them,  it is not weird at all.
>>
>>>
>>> Furthermore atomizing it makes explicitly clear to the programmer whats
>>> gone on whereas barfing about duplicate attribute nodes when what you
>>> have coded
>>>
>>> <something>{$t/@sex}</__something>
>>>
>>>
>>> has no  explicit duplicate node in sight is bloody confusing until you
>>> figure out that the duplicates have mysteriously morphed from the group
>>> by clause. Note this can happen even if your are grouping on something
>>> other than @sex.
>>>
>>>
>>>  you seem to be saying you want
>>
>> <something sex="M"/>
>>
>>
> No I'm not. I want
>
> <someting sex='M M"/>
>
> then I could count them.
>
> and if it was
>
> <foo bar="...."/> where the sequence of @bar's take on several distinct
> overlapping values I may want to union or interesect them
>
> and if @bar didn't taken on overlapping values I may want to return them
> as a list.
>
> I don't know how much clearer I can make this.
>
>
actually I can make it clearer.

Having started with 3 differe

<review person="John" product="xsl book"/>
<review person="John" product="perl book"/>
<review person="Janet" product="perl book/>
<review person="chris" product="ruby book"/>
<review person="chris" product="xsl book"/>

and I group by @person and get

<review person="John" product="xsl book perl book"/>
<review person ="Janet" product="perl book"/>
<review person="chris" product="ruby book xsl book"/>

Well it just might be that subsequently  I want the spanned set of
everything thats ever been reviewed  and/or I want  count of all the
products reviewed by person alongside a list of them . It might also be
that the content of the review element is the  actual review so I want
don't want to pollute  it with a list and would rather squirrel away the
sequence of products in an attribute.

Now thats me done. If it sounds weird to you , well the client doesn't
think so.
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to