Complicated document merge question

Hi all,I need the ability to generate documents on demand, merging in sub-documents like copyright, legal disclaimer, etc. We are trying to use Alfresco for workflow but need to find a tool that handles the merging for us. I think this will require creating a template document with references to external files that have the variable portions.Has anyone done anything like this? I can't really find anything when I search the web but I'm sure it's not an uncommon problem. I'd really appreciate any help.Thanks!Jim

From your description, it sounds like you're talkingabout including content from one place within another,not line-level merges between conflicting versions witha common ancestor.

There are two very common approaches for handlinginclusion: dynamic (e.g.: server side includes or JSP includes),and static (e.g.: template-driven includes such as you canachieve via freemarker and/or xslt).

If you go the static approach, then you'd just regenerateyour output as-needed. If you use SSIs, it's all doneautomatically, live. The static approach is more scalableif you've got a huge amount of traffic, but even large sitesuse dynamic inclusion fairly often.