Generalize writing of IDs to the DOM
We should change the JATS export (and possibly toDOM
) methods to generally write an ID to the DOM for any node which has an ID, rather than define a priori which nodes should have them (as is currently the case, but breaks some edge cases where nodes are assumed to have IDs but do not in practice).
Method can also take care of "normalizing" IDs by replacing colons with underscores.