Rethinking Historical Research in the Digital Age: A TEI Approach