CTRL+C pour copier, CTRL+V pour coller
1
declare function local:profondeur($e as node()) as xs:integer
3
if ($e[not(child::*)]) then 1
4
else max(for $c in $e/* return local:profondeur($c)) + 1
7
local:profondeur(doc("DB_NAME/file_name.xml"))
declare function local:profondeur($e as node()) as xs:integer
{
if ($e[not(child::*)]) then 1
else max(for $c in $e/* return local:profondeur($c)) + 1
};
local:profondeur(doc("DB_NAME/file_name.xml"))