move yangEvalDoc to libyang
move yangEvalDoc to libyang
Use slaxElementXPath for encoding as_element arguments; check if we're under a template before allowing yangCheckChildren logic
move do_eval to libyang (as yangEvalDoc)