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

David Carlisle davidc at nag.co.uk
Wed Jan 8 05:04:32 PST 2014

On 08/01/2014 12:55, Ihe Onwuka wrote:
> Now thats me done. If it sounds weird to you , well the client doesn't
> think so.

The client requirements are reasonable, but the code did not match that 

The product attribute in your desired result is not a copy of any 
attribute in the source so you need to use an attribute constructor.

<review product="{$t/@product}">

_would_ be atomised exactly as you wish as, the content of an attribute 
constructor is implicitly atomized. You were copying into the content of 
an element constructor, and the contents of element constructors are not 
atomized by default.


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