[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Defining a string array and setting values

John Snelson john.snelson at oracle.com
Fri Jan 4 10:50:26 PST 2008


  Defining a string array and setting values
XQuery is a functional language, which means you won't be able to use 
procedural techniques to write an XQuery program. Setting the value of a 
variable is one of the procedural paradigms which you can't use in XQuery.

You'll need to take a step backwards and find a solution to your problem 
that doesn't involve setting values in an array.

John

Jayalakshmy K wrote:
> 
> I want to declare a string array and set values to it in a function
> 
> how do i do it using XQuery. Itried using this but it didn't work
> declare variable $errorParam:= "";
>         $errorParam[.= 0] = $x
>         $errorParam[.= 1] = $y
>         $errorParam[.= 2] = $z
>         $errorParam[.= 3] = $w
>         $errorParam[.= 4] = $u


-- 
John Snelson, Oracle Corporation
Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net


Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.