Document publishing diagram

This is an ideal of how documents could be prepared and produced (click for PDF):
publishingdiagram