Hi,
I'm writing custom pane for easy inclusion of links (in this case
DocBook olinks). I need to load main document with all link targets into
memory in order to display links targets in my pane. However this main
document is composed using XIncludes.
I thought that the following code will load document and expand XIncludes:
Loader docLoader = new Loader();
Document mainDoc = docLoader.load("my-main-document.xml");
Because in JavaDoc for Loader there is written:
setDefaultInclusionProcessors
public void setDefaultInclusionProcessors(InclusionProcessor[] processors)
Specifies the (possibly empty) array of InclusionProcessors applied by
default to the document being loaded. Default value: an array containing
an XIncludeProcessor.
But in mainDoc XIncludes are not resolved. Is there anything else needed
to get XIncludes resolved when loaded using XXE DOM?
TIA,
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka at kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20071101/e991010f/attachment.sig