|
[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 valuesJohn Snelson john.snelson at oracle.comFri Jan 4 10:50:26 PST 2008
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






