Page 1 of 1

Support for XInclude

Posted: Thu Mar 06, 2003 12:05 pm
by Guest
Is support for XInclude planned? We are using XInclude for our document fragments and it would be nice to be able to transform the master document and pull in the fragments.

Thanks,
Darren

Support for XInclude

Posted: Fri Oct 03, 2003 7:10 pm
by mariuss
Hi,

I would just like to bring this issue up again, yes, XInclude support would be greate.

Here is some documentation on how XInclude can be used with DocBook:
http://www.sagehill.net/docbookxsl/ModularDoc.html

And an XInclude engine in Java:
http://xincluder.sourceforge.net/

Thanks,
Marius

Posted: Fri Oct 03, 2003 9:32 pm
by george
Hi Darren and Marius,

We are considering XInclude support for the next release of oXygen. Actually Xerces provides XInclude support since Xerces 2.5.0 which is included in oXygen 2.0.4 but the implementation is experimental. I did not test this but I think that if you set the org.apache.xerces.xni.parser.XMLParserConfiguration property to org.apache.xerces.parsers.XIncludeParserConfiguration then you should already have XInclude support, see http://xml.apache.org/xerces2-j/faq-xni.html#faq-2 for how to overwrite the default parser configuration for Xerces. You may also look at http://xml.apache.org/xerces2-j/faq-xinclude.html .

Best Regards,
George

Support for XInclude

Posted: Tue Oct 14, 2003 9:25 pm
by mariuss
Thanks George,

I tried using XInclude in oXygen 2.0.4 as you suggested and it worked fine!

A few comments:
  • the property you mention should be set as a JVM system property on the command that starts the JVM
  • one way to set the property is in oxygen.bat by adding

    Code: Select all

    -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
    to the java command
  • another way is by editing oxygen.lax (if you use oxygen.exe) and by adding the same argument to

    Code: Select all

    lax.nl.java.option.additional
  • in your posting the property value has a small typo (xerses instead of xerces), be careful if you copy and paste
Marius

Posted: Wed Oct 15, 2003 9:46 am
by george
Hi Marius,

I edited my previous message to fix the typo.

Thanks,
George