XInclude (was: Re: [Yanel-dev] Multiple xml-apis libs version)

Guillaume Déflache guillaume.deflache at wyona.com
Thu Oct 1 12:52:19 CEST 2009


Hi!

[ Sorry for the late reply, I somehow missed your answer! :/ ]

Michael Wechner schrieb:
>> On an unrelated note, Java 5 seems to provide a XInclude 
>> implementation that we perhaps could use instead/in addition of our 
>> own (very incomplete) one.
> 
> can you send a pointer/URL re this?

According to e.g. 
<http://java.sun.com/developer/technicalArticles/xml/jaxp1-3/#XInclude 
Support> it is pretty simple so maybe that's why it remained so obscure 
(no tutorials needed ;)...):
> JAXP 1.3 has also defined the support for XInclude. SAXParserFactory/DocumentBuilderFactory should be configured to make it XInclude aware. Do this by setting setXIncludeAware() to true. 

Alas it does not seem to be possible to leverage that to do XInclude 
processing outside of a parse, e.g. only as a step in a XML 
transformation pipeline! :(

Cheers,
    Guillaume


More information about the Yanel-development mailing list