Project

Profile

Help

Is a package-version a required option for fn:transform w... ยป use-dbj-packages-from-xquery-without-package-version.xq

Martin Honnen, 2020-07-27 22:13

 
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";

declare option output:method 'json';
declare option output:indent 'yes';

transform(
map {
'package-name': 'http://www.obdurodon.org/linear-algebra-lib',
'initial-function': QName('http://www.obdurodon.org', 'transpose-matrix'),
'function-params': [[[1, 2], [3, 4]]],
'delivery-format': 'raw',
'vendor-options': map {
QName('http://saxon.sf.net/', 'configuration'): doc('https://raw.githubusercontent.com/djbpitt/plot/master/he-config.xml')
}
}
)?output
    (1-1/1)