On Tue, Jan 25, 2011 at 9:27 PM, NewIntellectual newintellectual@gmail.com wrote:
Is there a function to retrieve a persistent unique node identifier from any given retrieved node? I thought it would be db:node-id($node)
Exactly, this is the function to be called. The returned id should be unique for all nodes of a document..
but that is returning '0'.
Do you have a reproducible example for this case? The following BaseX call should return "2" for the text node:
basex -c "create db test <x>text</x>; xquery db:node-id(//text())"
Christian
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk