[xquery-talk] "While" in xquery

David Carlisle davidc at nag.co.uk
Tue Mar 22 11:20:15 PST 2011


On 22/03/2011 11:14, Julio de la Vega wrote:
> Hi *,
>
> I have an xquery development where I need to repeat an element as many
> times as a value of an specific node
>
> I am trying to use a “while” expression in my xquery development but I
> am not sure if it is possible or if it is an extension that depends of
> my xquery engine.
>
> Could you please help me to understand if it is possible to use it? Any
> idea?
>


for $i in 1 to xs:integer($somenode)
return
<element>to be copied $somenode times</element>




David


________________________________________________________________________
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