"declare copy-namespaces no-preserve, inherit; " must come first
Tuesday, 29 November 2011 · 2 messages
J
jidanni29 Nov 2011 09:32 #
"declare copy-namespaces no-preserve, inherit;" must come first:
$ cat e
declare option output:omit-xml-declaration "no";
declare copy-namespaces no-preserve, inherit;
<z/>
$ basex e
Stopped at line 2, column 8 in /tmp/e:
[XPST0003] Unexpected end of query: 'copy-namespaces...'.
$ cat f
declare copy-namespaces no-preserve, inherit;
declare option output:omit-xml-declaration "no";
<z/>
$ basex f
<?xml version="1.0" encoding="UTF-8"?>
<z/>
$ apt-cache policy basex
basex:
Installed: 7.0.2-1CG
Christian Grün29 Nov 2011 09:40 #
Quoted text · jidanni · 1 line
> "declare copy-namespaces no-preserve, inherit;" must come first:
True; that's the way it's defined in the specs (although it might not be obvious). See [1] for more information.
Christian
[1] http://www.w3.org/TR/xquery-30/#id-query-prolog
Quoted text · jidanni · 22 lines
> $ cat e > declare option output:omit-xml-declaration "no"; > declare copy-namespaces no-preserve, inherit; > <z/> > $ basex e > Stopped at line 2, column 8 in /tmp/e: > [XPST0003] Unexpected end of query: 'copy-namespaces...'. > $ cat f > declare copy-namespaces no-preserve, inherit; > declare option output:omit-xml-declaration "no"; > <z/> > $ basex f > <?xml version="1.0" encoding="UTF-8"?> > <z/> > $ apt-cache policy basex > basex: > Installed: 7.0.2-1 > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery