Support for XInclude

Are you missing a feature? Request its implementation here.
Guest

Support for XInclude

Post 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
mariuss
Posts: 21
Joined: Tue Sep 09, 2003 10:37 pm
Location: Vancouver, Canada

Support for XInclude

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Last edited by george on Wed Oct 15, 2003 9:41 am, edited 1 time in total.
mariuss
Posts: 21
Joined: Tue Sep 09, 2003 10:37 pm
Location: Vancouver, Canada

Support for XInclude

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Marius,

I edited my previous message to fix the typo.

Thanks,
George
Post Reply