SAXONICA |
Saxon does not itself provide an XInclude processor.
If you are using Xerces as your XML parser, you can have Xerces expand any XInclude directives by setting the system property:
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
An alternative approach is to incorporate an XInclude processor as a SAX filter in the input pipeline. You can find a suitable SAX filter at http://xincluder.sourceforge.net/, and you can incorporate it into your application as described at Writing Input Filters.
On the .NET platform, there is a customized XmlReader
that performs XInclude processing available at
http://www.xmlmvp.org/xinclude/index.html. You can supply
this as an argument to the method Build(XmlReader parser)
in the DocumentBuilder
class
of the .NET Saxon API.
For further information on using XInclude, see http://www.sagehill.net/docbookxsl/Xinclude.html