massive xpath overhaul, passed initial test of producing epub3 and epub2