Most of the code examples in the book should be injected directly into the DocBook source from a compiled and tested example. Write a quick goal that scans the DocBook XML for a custom namespace, rips in a file from a dependency, and then injects an example.
This Goal should initially support:
1. The execution of an arbitrary class from a "jar-with-dependencies" artifact
2. Ripping a source code example from a source file using a named delimiter
3. Including a DOM element that matches an XPath pattern