processXInclude function

Perform the XInclude substitutions