This is just a guess, but did you include the DTD? As the document says: "Notice that the id() functions works only if you have properly declared the ID and IDREF attributes in the document DTD."
Ben
On 29 October 2012 13:49, Massimo Franceschet massimo.franceschet@uniud.it wrote:
Hi.
I'm trying to use the XPath id function with BaseX (GUI interface) with no success. For instance, I'm querying the bibliographic XML document found at http://users.dimi.uniud.it/~massimo.franceschet/caffe-xml/xpath/xpath-syntax... with the id queries written below in this page, for instance, id("M4M05"). The query is parsed correctly by BaseX but the result is always empty.
Cheers,
Massimo Franceschet _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk