Automatically create xref origin in toHTML5 if none is given