Hi Anders,
extracting the filename is quite easy: `//*/root()/fn:document-uri()` - just change the context node to your needs. `fn:document-uri(root(//*))` works, too.
I'm not totally sure about line numbers and columns, but I do not know any way to retrieve these information. If it is possible, someone else from the core team will veto soon.
Kind regards from Lake Constance, Germany,
Jens Erat
--
Jens Erat
[phone]: tel:+49-151-56961126
[mail]: mailto:email@jenserat.de
[jabber]: xmpp:jabber@jenserat.de
[web]:
http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Am 11.01.2012 um 23:28 schrieb Anders Hessellund:
> Hi,
>
> we are experimenting with BaseX as a database for a large set of local XML files (3000-4000). When we query for individual elements and attributes in this portfolio of XML documents, is there any way to get location information about concrete elements and attributes. Specifically, we need to know filename, line number and column of element (start tags) and attributes. Is this possible? And if so, how?
>
> Thanks,
>
> Anders
> _______________________________________________
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
>
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk