Dear Rob, 

thanks a bunch for your suggestion, imho the main issue BaseX lacks this, is that the W3 does not provide any recommendations on how to represent a map textually, i.e. serialize it.

Anyhow, our team member Leo came up with a module that handles serialization of arbitrary XQuery sequences:
https://github.com/LeoWoerteler/fots-basex/blob/master/serialize.xqm

You most probably want to put this in your repo folder [1], so you can easily import it by only referencing its namespace.

Hope this helps!
Michael

[1] http://docs.basex.org/wiki/Repository#Introduction

Am 04.04.2013 um 15:15 schrieb Rob Stapper <r.stapper@lijbrandt.nl>:

 
 
Van: Rob Stapper [mailto:r.stapper@lijbrandt.nl] 
Verzonden: donderdag 4 april 2013 13:13
Aan: Christian Grün
Onderwerp: tip/request
 
Hi Christian,
 
I’m working with Basex 7.7beta now without any problems.
The trace-function also works much better except …….. it doesn’t work with mappings.
I make intensive use of recursion and mappings and for debugging it would be nice if the trace-function would also work with mappings.
 
I wouldn’t ask you to implement this  if it wasn’t so easy to program in Xquery, see attachment.
I use this programmed version but I think it would be nice if the trace-function could also process mappings.
 
Just something to consider ?
 
Greetings Rob Stapper
<mapTracer.xq>_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk