Support for DOM and other external tree models

Saxon 7.9 is tested with JDOM beta 10. The only change needed to move forward from beta 9 was to ensure that DOCTYPE nodes are skipped when processing the children of a Document node.