Created
October 25, 2013 10:01
-
-
Save rvdb/7152363 to your computer and use it in GitHub Desktop.
two test files demonstrating that eXist-2.1 seems to treat 'xquery' as a reserved namespace prefix in an imported module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
import module namespace test="testimport" at "ns_module.xq"; | |
declare namespace xquery="test"; | |
declare variable $xquery:test := 'test'; | |
test:echo($xquery:test) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
(: in an imported module, eXist complains about syntax errors when 'xquery' is declared as the module's namespace prefix | |
: this suggests that eXist in this case treats 'xquery' as reserved namespace prefix | |
:) | |
module namespace xquery="testimport"; | |
declare function xquery:echo($string) { | |
$string | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment