I believe the text is out of sync. with the productions, and the
productions are correct, and general entities can contain markup (or
rather, characters which will be treated as markup in the right
context).
That's the way we've implemented it in LT XML.
ht