Detect xmldecl (or lack of) correctly when resolving xlink
Created by: davemevans
I noticed that xlinked content which does not include an XML declaration was incorrectly handled by xlinkcontroller which would cause remote Period resolution to fail.
The XML declaration is optional (the spec only says it SHOULD be included).
This fixes at least the first issue in #1414 (closed).