For all the features, you need s full XInclude processing.
This XSLT stylesheet will handle transclusion of those with parse='xml'.
It will also handle the fallback if the document does not exist.
Example input: doc.xml abstract.xml
Example output: doc_output.xml