Docbook is geared toward technical and program documentation. I've seen a lot of linux docs using it and utilities geared to maintaining it.
Plucker is a free book format.
This page at Wikipedia has a collection of useful information about e-book formats.