[xquery-talk] "While" in xquery

Julio de la Vega j.vega at helpprintsolutions.com
Tue Mar 22 13:45:30 PST 2011

Thank you,

I could get what I need



-----Mensaje original-----
De: David Carlisle [mailto:davidc at nag.co.uk] 
Enviado el: martes, 22 de marzo de 2011 12:20
Para: Julio de la Vega
CC: talk at x-query.com
Asunto: Re: [xquery-talk] "While" in xquery

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)
<element>to be copied $somenode times</element>


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