|
I'm just getting started with Saxon after reading your articles.
I can do a fair amount for a beginner, but I'm having problems with "counting" the number of items that are output via a FOR...IN. I'm using the ORDER BY to sort them, which means their position() in the list changes.
Any advice on how to count the items as XQuery processes them?
Normally in a script you'd do something simple
like
Counter = Counter + 1
but XQuery doesn't work quite the same.
the full example is:
http://groups-beta.google.com/group/microsoft.public.xml/browse_frm/thread/5324e654c4ce1849/e3a4c5220436049c#e3a4c5220436049c
and I simply want to leave off the comma from the last item in the series of nodes.
Thanks, Jay Alverson
|