Clean up documentation a bit. Fix IDs and IDREFs to conform to
respective XML rules.