fix for temp-dir files getting wrong base-uri

only set `x:document/@xml:base` when it is not already there.