|
next
|
 Subject: Newbie struggling with nested FLWOR expression Author: Jim Salmons Date: 06 Sep 2007 09:57 AM
|
Excellent, Minollo! Thank you. So simple yet so elusive to a newbie. The on-line examples tend to be the same ones over and over, with explanations that are rather spartan.
Having spent nearly 25-years as a hardcore Smalltalker, and now with so many years of any-language-that'll-do-the-job, mostly procedural scripting languages, I just need to see examples of what's essential and correct to get the hang of this.
I can see, for example, that the 'best practice' method of Smalltalk object design -- where you write lots of little use case-driven, protocol-oriented methods and don't worry much about when/how they are called, only that they do the right thing with their input and return/perform their specific, expected result -- that this mindset will translate easily to the declarative nature of XQuery 'programming'.
Now if I could just learn to be less anal about result formatting in interactive mode (or if there was a 'pretty priniting' button on the Preview pane, I'd be smokin'! :-)
Your simplified version makes perfect sense and will help me a lot as I move forward.
Thanks,
--Jim--
|
|
|