I added the following line of code:
// to get rid of xml:base that is brought in with xinclude
spf.setFeature("http://apache.org/xml/features/xinclude/fixup-base-uris", false);
in the same place that I set the parser factory to be xinclude aware per this article