Re: [basex-talk] was: increment a variable only when a conditional is true?

2020-02-19 Thread thufir
Yes, that's pretty much it: https://stackoverflow.com/q/60237739/262852 I'm a bit curious what happened to the "people" group, but I'll test and adapt. Did "people" get dropped because it has no following siblings to group with? thanks, Thufir On 2020-02-19 6:55 p.m., Majewski, Steven

Re: [basex-talk] was: increment a variable only when a conditional is true?

2020-02-19 Thread Majewski, Steven Dennis (sdm7g)
The reason I asked was: although XQuery looks more procedural than XSLT, it’s still basically a functional and declarative language, and thinking about incrementing or decrementing variables is probably the wrong way to think about solving your problem in XQuery. Variables bind names to values

Re: [basex-talk] was: increment a variable only when a conditional is true?

2020-02-19 Thread thufir
Hi Steve, yes, it certainly does. At this point, I'd settle for adding an attribute like "recordID", but that's exactly it. I'll take a closer look at "group by" a bit later, thanks for the pointer. See also: https://stackoverflow.com/q/60237739/262852 thanks, Thufir On 2020-02-19

[basex-talk] was: increment a variable only when a conditional is true?

2020-02-19 Thread Majewski, Steven Dennis (sdm7g)
> On Feb 19, 2020, at 10:01 AM, thufir wrote: > > where I'm trying to use attributes because I'm not sure how to conditionally > nest tags. But, this is interesting. Not quite sure on syntax to set and > then conditionally increment $x, however. Does “conditionally nest tags” mean that