This one has a TOC inside a NonStruct. I think that's fine - ISO32K on NonStruct:
"A grouping element having no inherent structural significance; it serves solely for grouping purposes. This type of element differs from a division (structure type Div) in that it shall not be interpreted or exported to other document formats; however, its descendants shall be processed normally."
OK, so we process it's descendants normally but otherwise there are no restrictions. What about TOC?
"(Table of contents item) An individual member of a table of contents. This entry’s children may be any of the following structure types:"
It goes on to list restrictions on its children, but says nothing about its parent. So by the letter of the spec, TOCI in a NonStruct is valid.
This one has a TOC inside a NonStruct. I think that's fine - ISO32K on NonStruct:
OK, so we process it's descendants normally but otherwise there are no restrictions. What about TOC?
It goes on to list restrictions on its children, but says nothing about its parent. So by the letter of the spec, TOCI in a NonStruct is valid.