SRU codebase. Note that synthetic primary key is now assumed to be 'Id'.... though actually most of the references to an entity's primary key should be looking it up rather than assuming its name.
(i) is now valid (ii) allows HTML in head, top and foot