There are methodologies (notably Edmond Weiss's Structured Documentation) that help you design documentation from the top down on a topic-by-topic basis. I think such methodologies would fit into the XP development environment, um, extremely well 8^)