Hi,
I'm not really familiar with the formulation of the xquery standard. Should code of this type depending on the short-circuit evaluation of the and operator evaluate correctly?
declare variable $version:=1; declare variable $outputdb:='test'; declare variable $outputpath:='test'; db:exists($outputdb,$outputpath) and doc(concat($outputdb,'/',$outputpath))/node()/@version = $version
If the file test/test doesn't exist and receive an error even if the evaluation of the condition is possible. If this is normal does it exist a way to write this type of code without use of if?
Pablo Strasser