David Bullock wrote: > > In the meantime, I'm trying to write a longish document, and have > (naively I suppose) thought to compose it using document references. So > for example, I'm trying to make an Article, and embed in it a Section > which embeds another Section. XXE itself handles this just fine. But > I'm not having much luck outputting it to any useful format. Below are > the files I got when creating level3.xml, then level2.xml, then > level1.xml, and pasting a document reference to level3.xml into > level2.xml, and then pasting a document reference to level2.xml into > level3.xml. > > When using XXE with the xep_foprocessor (with the XEP trial), and using > the Docbook menu to transform to PDF, it all just works (except that > after 11 pages, every odd page is blank, owing to the XEP trial).. > > But when I try FO Converter or XEP Assistant (personal edition) on it, > then instead of the included content of level3.xml, there's a glorious > red '<xi:include></xi:include>'. > > How can I get the multi-level document assembled?
--> Using the Java[tm] API, a helper function such as DocumentUtil.saveDocument() makes it easy. See http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/edit/DocumentUtil.html#saveDocument(com.xmlmind.xmledit.doc.Document,%20java.io.File,%20com.xmlmind.xmledit.edit.SaveOptions) --> Without programming in Java[tm], suffice to write a process command containing a copyDocument element. By default, copyDocument creates a ``flat'' copy of the document being edited. That's precisely the reason why "...When using XXE with the xep_foprocessor (with the XEP trial), and using the Docbook menu to transform to PDF, it all just works..." See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process.html See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/copyDocument.html --- PS: I recommend using XEP Personal Edition (not XEP *Trial* Edition) through the plug-in downloaded from http://www.xmlmind.com/xmleditor/plugins.shtml

