OOps :indenting is not correct in the example (dues to copy/paste problem) please indent the 'spine' modification into the enclosing for loop
a2x: spine info should be modified to allow internal documents that are not in the linear flow