Project

Profile

Help

Bug #6057 » first.xq

Khalil Rahmouni, 2023-06-01 18:43

 
import schema namespace simple="http://meinnamespace.meinefirma.de" at "xsd/first.xsd";

declare function local:validate_doc ($in) as element()? {
if (empty($in)) then ()
else
let $res := (validate { $in })
return
if ($res instance of document-node()) then $res/*
else $res
};
let $toValid := doc('first.xml')
let $valid := local:validate_doc($toValid)

return
<test>{
$valid/*/@*
}
</test>



(1-1/4)