[xquery-talk] Tales of the unexpected version III - Atomization

David Carlisle davidc at nag.co.uk
Wed Jan 8 08:34:56 PST 2014

On 08/01/2014 16:25, Ihe Onwuka wrote:
> Ok. What sections of Mike Kay's book and the spec didn't I read that
> conveyed the information you just gave and what references to them
> did I miss.

That's really the only reason I carried on with the thread. To see if
there are any parts of the spec that can be clarified. (Not that I have
any input to that, other than bug reports).

It is hard to see how (from either source) you came to the conclusion
that atomization would happen here so I can't really guess which parts
of either text could be clarified. Also since you haven't shown how you
used data() in any way that works (and I can't think of one) I can't
suggest what part of the text would tell you to use data in the way that
you say works.

The issue is that you want to generate an attribute, so you should use
an attribute constructor. If you do that then any data you supply to the
constructor is implicitly atomized and the resulting space separated
sequence used as the attribute value.

You didn't use an attribute constructor and so didn't get the result you
expected, but I am not sure what you expect the spec to say.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

More information about the talk mailing list