Standard XInclude Support
Posted: Fri Mar 04, 2005 3:01 am
Hello. I'm building a DocBook project, and using XInclude to break up the source into modules (following Bob Stayton's example at http://www.sagehill.net/docbookxsl/ModularDoc.html). I can validate my project with libxml2 using the command "xmllint --noout --xinclude --postvalid --noent SA-XInclude.xml".
However, when I import the project into Oxygen, it fails validation with the error "Element type "xi:include" must be declared". I see from Oxygen's template examples that XInclude support is implemented via an entity declaration that points to "xinclude.mod", a component bundled with Oxygen. If I add that entity declaration and enable XInclude processing in the Prefs, my project validates.
The problem is that my project must be machine-agnostic; that is, it must validate on any machine, not just machines where Oxygen is installed. Does Oxygen only support an application-specific implementation of XInclude? Is it possible to implement validation within Oxygen using libxml2?
Thanks for your help.
Jennifer.
However, when I import the project into Oxygen, it fails validation with the error "Element type "xi:include" must be declared". I see from Oxygen's template examples that XInclude support is implemented via an entity declaration that points to "xinclude.mod", a component bundled with Oxygen. If I add that entity declaration and enable XInclude processing in the Prefs, my project validates.
The problem is that my project must be machine-agnostic; that is, it must validate on any machine, not just machines where Oxygen is installed. Does Oxygen only support an application-specific implementation of XInclude? Is it possible to implement validation within Oxygen using libxml2?
Thanks for your help.
Jennifer.