[basex-talk] metadata

2016-02-13 Thread Kendall Shaw
Unless there is now a standard way to associate metadata with documents and 
collections, is there a preferred method?

I could try to ensure that there is always a unique id that can be derived from 
combination of an id attribute or element in the document + the document’s 
document uri, then have separate metadata documents that are associated with 
the unique id. Is there an obviously better approach?

Kendall


Re: [basex-talk] Serialization to jsonml / Whitespace-Handling

2016-02-13 Thread Günter Dunz-Wolff
Hi Christian,

when I'm doing
json:serialize(fn:normalize-space(doc('bettelweib.xml')//*:body), map { 
'format': 'jsonml' })

I get
JSON serializer: Atomic values cannot be serialized

Greetings from Hamburg,
Günter

> Am 11.02.2016 um 13:20 schrieb Christian Grün :
> 
> Hi Günter,
> 
> Did you try fn:normalize-space?
> 
> Greetings from Prague,
> Christian
> 
> 
> 
> On Thu, Feb 11, 2016 at 1:19 PM, Günter Dunz-Wolff
>  wrote:
>> Hi all, hi Christian
>> 
>> I want to serialize my xml-documents to jsonml like so:
>> 
>> json:serialize(doc('bettelweib.xml')//*:body, map { 'format': 'jsonml' })
>> 
>> Inside the jsonml are lots of strings with unnecessary whitespace like:
>> 
>> "Das Bettelweib von\nLocarno."
>> 
>> How could I remove that whitespace and also \n during or after the 
>> serialization?
>> 
>> Thanks for any help.
>> 
>> Regards,
>> 
>> Günter
> 




[basex-talk] JavaDoc link?

2016-02-13 Thread buddyonweb-software
I may have overlooked it (and if so, sorry), but I can't seem to find the link 
to the JavaDocs on any of the online documentation pages.Can you direct me to 
the online documentation page that has that link?
Again sorry if it was right in front of me and I missed it.
Thanks,
Buddy