Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-13 Thread Christian Grün
> Having tried out the snapshot, I can confirm the queries are bluer! ;) Talking about colors, I have slightly revised our color schemes (for XQuery, XML, JSON and JavaScript files) and made them more subtle. Real input parsing is somewhere on our agenda as well. I noticed that the highlighting

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-11 Thread Joe Wicentowski
Hi Christian > Our custom renderer was optimized for > performance. It’s possible to open and highlight pretty large XML > documents, but the highlighting is very basic. Ah, I see. Very interesting. rendered queries will even be “bluer” than before, but the overall > appearance will

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-11 Thread Joe Wicentowski
Hi Christian, I just gave it a try, and the new serialization preferences work like a charm. It's pretty amazing to see a request go from idea to implementation so quickly - thank you! I think it's a nice touch that serialization options specified in a query are respected, so the preferences

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-10 Thread Christian Grün
Hi there, To begin with: I forgot to mention that you can change the serialization method by launching the command "set serializer method=adaptive" in the command input text field on top of the BaseX window. I agree this is not very comfortable, so I have now added a new interaction component

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-10 Thread Christian Grün
Hi Joe, > Have you considered adding a preference or toggle for selecting the default > serialization method used in the GUI's results? Sounds like an enticing idea! Something similar is embedded in our Database Export dialog (see menü items 'Database', 'Export…'). I haven’t touched it for

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-10 Thread Joe Wicentowski
Hi Christian, I actually quite like the adaptive serialization method and have made it the default in eXide. From my perspective in teaching XQuery, showing an xs:string item in quotes (and integers sans quotes) helps reinforce the concept of data types. It feels to me like a datatype-sensitive

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-10 Thread Christian Grün
Hi Joe, Thanks for the link. So I noticed that you were quoting exactly the same phrase of the spec as I did. ;) I just checked what Saxon does: It seems to ignore the value of the indent parameter when serializing arrays with the adaptive method. So I guess that every implementation of XQuery

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-10 Thread Christian Grün
Dear Joe, Thanks for the kind feedback. I am glad to hear BaseX was useful in your DH 2017 workshops. > the serialization spec notes that the adaptive method delegates the handling > of the "indent" parameter to JSON. Could you possibly point me to this rule in the spec? I remember there was a

Re: [basex-talk] Differences in serialization of arrays with JSON vs. adaptive methods

2017-08-10 Thread Giuseppe Celano
Hi Joe, I am happy to hear you are also spreading the word! XQuery has a most clean data model, and BaseX has implemented and extended the language so efficiently and elegantly. Best, Giuseppe Universität Leipzig Institute of Computer Science, Digital Humanities Augustusplatz 10 04109