[mod] structure

This commit is contained in:
Andy Bunce 2021-05-19 22:33:08 +01:00
parent 9aeabc6ea1
commit 303a168bc7
14 changed files with 70 additions and 60 deletions

6
xquery/diag-xqdoc.xq Normal file → Executable file
View file

@ -4,14 +4,18 @@
:)
declare namespace doc="http://www.xqdoc.org/1.0";
declare namespace dotml="http://www.martin-loetzsch.de/DOTML";
declare namespace hash="http://basex.org/modules/hash";
declare variable $ns-ignore:=("http://www.w3.org/2005/xpath-functions",
"http://www.w3.org/2010/xslt-xquery-serialization",
"http://www.w3.org/2001/XMLSchema",
"http://www.w3.org/2005/xpath-functions/math" );
declare function local:sid($s as xs:string){
declare function local:sid($s as xs:string)
as xs:string{
"A" || xs:hexBinary(hash:md5($s))
};
declare function local:fid($uri as xs:string ,$name as xs:string,$arity as xs:string){
let $a:=fn:trace(($uri || "*" || $name || "*" || $arity),"fid: ")
return "A" || xs:hexBinary(hash:md5($uri || $name ||$arity))

0
xquery/graphviz.xqm Normal file → Executable file
View file