Hello, I'd like to ask about documents created form templates that reference other templates. Let me explain by providing an example:
I have few templates for different parts of documents, and I always want to have them saved in separate files. There are: "Main Document" (DocBook book element), Preface (DocBook prefece element), "Glossary" (DocBook glossary element) and "Sources" (DocBook bibliography element). Main document references Preface file (preface.xml), Glossary file (glossary.xml) and Sources file (sources.xml). And yes, I always want to have documents with such a minimal structure, and I always want the default parts (Preface, Glossary and Sources) having the same default names (preface.xml, glossary.xml and sources.xml). Because there are many authors of one document I want it to be very modular. When I create new "Main document" it opens on the screen with other referenced parts properly (taking them from templates), but the problem starts to arise when I'm about to save the work. "Main document" in the editor has temporary name "Untitled.xml", and of course that's OK. That's OK, as well, that the editor asks me for assigning my own, better name. But next, there it "Document Resources" dialog telling me that "/full/path/of/my/previous/work/Untitled.xml" is about to be saved as "/full/path/of/my/new/work/MyNewName.xml", and there are some resources attached to the document (in my example: preface.xml, glossary.xml and sources.xml). The default action is "copy to", and it is again good for me. But unfortunately the files are searched not in template directory, but in "/full/path/of/my/previous/work/" directory. When such a files are found in "/full/path/of/my/previous/work/" directory (very probably, because of default structure of my documents), XXE requests confirmation, but I don't want to copy those files. I want to copy them from templates. When they can't be found there is an error message, for example "Resource preface.xml not found". Of course it is possible to solve this problem changing actions in "Document Resources" dialog to "ignore", and next creating all the parts from their templates, saving them with the default names, but: 1) One have to do that, and one have to remember the procedure to do that, and one can commit an error realizing it, 2) On the screen there are presented good parts (from good template files), which unfortunately cannot be saved as such. Is there any other solution to my problem? Best Regards Robert Ganowski

