basex
basex copied to clipboard
BaseX Main Repository.
Presently, only text nodes and attribute values end up in the BaseX indexes. Whenever a path expression points to a text node (or an element that only has text nodes...
New functions should be added to the HTTP Module, which shouldn’t do any magic as `http:send-request` does. Next, make functions streamable: http://www.mail-archive.com/[email protected]/msg03981.html
Given a database named "foo^bar" and this document at /docs/doc01.xml: ``` xml ``` This query: ``` xquery let $uri := 'foo^bar/docs/doc01.xml' let $doc1 := collection('foo^bar/docs/doc01.xml') let $doc2 := doc($uri) let...
in 7.8, it’s still 256
### Query ```xquery let $p := function($c, $q) { $c/* ! $q(?, $q)(.) } return $p((), $p) (: earlier version :) let $p := function($c, $q) { for-each($c/*, $q(?, $q))...
The following function should raise an error: ```xquery (: b.xqm :) module namespace b = 'b'; import module namespace c = 'c' at 'c.xqm'; (: c.xqm :) module namespace c...
If the string value of an XML path is always an integer … ```xquery index:facets('factbook')// element[@name = 'country']/ attribute[@name = 'population'] ``` … a numeric comparison … ```xquery db:open('factbook')//country[@population =...
**Query:** ``` xquery declare variable $a := function-name(local:f#0); declare function local:f() { $a }; local:f() ``` **Expected:** `local:f` **Returns:** `[XQDY0054] Static variable depends on itself`
In the database storage of BaseX, element and attribute names are indexed by their `prefix:local` representation, and the namespace is retrieved at runtime. This is why some compile-time query optimizations...
Moved from #804: see also [mailing-list](https://mailman.uni-konstanz.de/pipermail/basex-talk/2014-August/007207.html). #### XQuery Functions 1) `db:properties($db as xs:string) as element(properties)*` 2) `db:properties($db as xs:string, $path as xs:string) as element(properties)*` **Output:** ``` xml 2003-03-03 what a...