|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] HashesTim Finney tjf2n at virginia.eduWed Sep 20 17:09:33 PDT 2006
Sometimes I wish that XQuery had hashes: Clunky XQuery 1.0 way: if ($n = "a") then "aardvark" else if ($n = "b") then "bandicoot" ... else if ($n = "z") then "zebra" else () Declunked way: define variable $animals as xqy:hash { "a" => "aardvark", "b" => "bandicoot", ... , "z" => "zebra" } $animals[$n] Best Tim Finney
|
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
|






