The docbkx-maven-plugin has a specific goal for each targeted output
type. Unfortunately, xhtml is not among it yet. However, getting a
Maven plugin supporting docbkx:generate-xhtml is easy. You just have
add a few lines to the pom.xml file of the docbkx-maven-plugin module:
<execution>
<id>generate-xhtml</id>
<goals>
<goal>build</goal>
</goals>
<configuration>
<type>xhtml</type>
<superClassName>com.agilejava.docbkx.maven.AbstractHtmlMojo</
superClassName>
<excludedProperties>$
{excluded.properties},root.filename,base.dir</excludedProperties>
</configuration>
</execution>
I just gave it a try, and it seems to work just fine. There is no
reason why this should not be included in a next release. It would be
good if you would open up an issue for it though. ;-)