doc.forms uses and xpath that doesnt evaluate from the root of the document