It got it working. See comments at
https://issues.apache.org/jira/browse/FOR-1032

The main changes were to use an xml entity to
declare the xmlns:xi attribute in the DTD and to
use the "cocoon:" protocol for the xi:include href.

There are some other changes, so see FOR-1032.

-David