Make ID values somewhat configurable via prefix
Default to shortest possible string according to XML spec
Includes documentation (not re-wrapped to not clutter the diff).