So, conceptually I understand XQuery. And I like its philosophy.
(XSL was my first love, though. XQuery just has a different “feel”, which has a very different mindset when programming. I want to explore that…and if I’m really lucky, start using eXist seriously instead of just screwing around now and then.)
But one thing that has always driven me absolutely crazy is trying to figure out when I’m in “XQuery” scope versus “XML” scope. I can’t figure it out!
- Sometimes there are curly braces, sometimes there aren’t.
- When inserting a variable or function call into XML, does it get enclosed in curly braces? If you’re already inside open braces, do you (a) close them, insert the value, then re-open them and continue writing XML, or (b) stick in the $value and keep going?
Anybody who can demystify