action="{
    if ($new='true') then 
        'save-new.xq'
    else 
        'update.xq'
}"